| 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 { |