vampirc / vampirc-uci

A Universal Chess Interface (UCI) protocol parser and message generator.

Home Page:https://vampirc.kejzar.si

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The following test fails for the wrong reasons (go uci message)

MadMatt04 opened this issue · comments

   // TODO this fails for the wrong reason, parsing DOES not fail, it returns an essential empty GO message
    #[ignore]
    #[test]
    fn test_parse_signed_improperly_duration_wtime() {
        let parsed_msg = parse_one("go wtime !15030 btime +56826 movestogo 90\n");

        let time_control = UciTimeControl::TimeLeft {
            white_time: Some(Duration::milliseconds(15030)),
            black_time: Some(Duration::milliseconds(56826)),
            white_increment: None,
            black_increment: None,
            moves_to_go: Some(90),
        };

        let test_msg = UciMessage::Go {
            time_control: Some(time_control),
            search_control: None,
        };

        assert_eq!(test_msg, parsed_msg);
    }