test/test-real-pgn.c

changeset 193
d1420f5c5704
parent 179
5ef724e21702
equal deleted inserted replaced
192:e57e2874fb2a 193:d1420f5c5704
29 29
30 #include "ucxtest.h" 30 #include "ucxtest.h"
31 #include "chess/pgn.h" 31 #include "chess/pgn.h"
32 32
33 #if __STDC_VERSION__ < 202310L 33 #if __STDC_VERSION__ < 202310L
34 #error Need C23 compiler to compile this test. 34 /* since #warning is also a C23 feature, the only hope is this: */
35 #endif 35 #pragma GCC warning "Need at least a C23 compiler to compile test-real-pgn.c"
36 CxTestSuite* test_real_pgn_suite(void) {
37 CxTestSuite* suite = cx_test_suite_new("Skip testing real PGN Files");
38 return suite;
39 }
40 #else
36 41
37 const char pgn_data[150][1500]; 42 const char pgn_data[150][1500];
38 43
39 /* we have no clock info here, resign also includes running out of clock */ 44 /* we have no clock info here, resign also includes running out of clock */
40 enum expected_result { 45 enum expected_result {
856 EXPECTED_BRESIGN, 861 EXPECTED_BRESIGN,
857 #embed "data/game150.pgn" 862 #embed "data/game150.pgn"
858 , '\0' 863 , '\0'
859 }, 864 },
860 }; 865 };
866
867 #endif /* C23 compiler */

mercurial