The following test fails for the wrong reasons (go uci message)
MadMatt04 opened this issue · comments
Matija Kejžar commented
// 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);
}