test/chess_clock_test.cpp
/**
 * Tests the time_is_extensible() function if the UCI Options stipulate a certain amount of time for each player and the
 * time limit is < 10 seconds
 */
Tests the time_is_extensible() function if the UCI Options stipulate a certain amount of time for each player and the
time limit is < 10 seconds
Tests the time_is_extensible () function if the UCI Options stipulate a certain amount of time for each player and the time limit is < 10 seconds
TEST_F(ChessClockTester, TimeIsExtensible_TimeLimit_Under10Seconds) {
    EXPECT_EQ(cc.time_is_extensible(), false);
    uci_options.b_time_milli = 1000;
    uci_options.w_time_milli = 1000;
    cc.alloc_time(uci_options, WHITE);
    EXPECT_EQ(cc.time_is_extensible(), false);
    cc.alloc_time(uci_options, BLACK);
    EXPECT_EQ(cc.time_is_extensible(), false);
    uci_options.b_time_milli = 9999;
    uci_options.w_time_milli = 10;
    cc.alloc_time(uci_options, WHITE);
    EXPECT_EQ(cc.time_is_extensible(), false);
    cc.alloc_time(uci_options, BLACK);
    EXPECT_EQ(cc.time_is_extensible(), false);
}
TEST_F ( ChessClockTester , TimeIsExtensible_TimeLimit_Under10Seconds ) { EXPECT_EQ ( cc . time_is_extensible ( ) , false ) ; uci_options . b_time_milli = 1000 ; uci_options . w_time_milli = 1000 ; cc . alloc_time ( uci_options , WHITE ) ; EXPECT_EQ ( cc . time_is_extensible ( ) , false ) ; cc . alloc_time ( uci_options , BLACK ) ; EXPECT_EQ ( cc . time_is_extensible ( ) , false ) ; uci_options . b_time_milli = 9999 ; uci_options . w_time_milli = 10 ; cc . alloc_time ( uci_options , WHITE ) ; EXPECT_EQ ( cc . time_is_extensible ( ) , false ) ; cc . alloc_time ( uci_options , BLACK ) ; EXPECT_EQ ( cc . time_is_extensible ( ) , false ) ; }
Tests the time_is_extensible() function if the UCI Options stipulate a certain amount of time for each player and the
 time limit is < 10 seconds
Tests the time_is_extensible () function if the UCI Options stipulate a certain amount of time for each player and the time limit is < 10 seconds
/// UCI Options allocated time is < 10 seconds, so time isn't extensible /// Test white and black /// UCI Options allocated time is < 10 seconds, so time isn't extensible /// Test white and black