| 62 |
62 |
| 63 static CX_TEST(test_real_pgn) { |
63 static CX_TEST(test_real_pgn) { |
| 64 static unsigned index = 0; |
64 static unsigned index = 0; |
| 65 ++index; |
65 ++index; |
| 66 GameState gamestate; |
66 GameState gamestate; |
| 67 // TODO: fix that we need an initialized game state for parsing PGNs |
|
| 68 gamestate_init(&gamestate); |
67 gamestate_init(&gamestate); |
| 69 CX_TEST_DO { |
68 CX_TEST_DO { |
| 70 const enum expected_result rs = pgn_data[index-1][0]; |
69 const enum expected_result rs = pgn_data[index-1][0]; |
| 71 const char *pgn = pgn_data[index-1]+1; |
70 const char *pgn = pgn_data[index-1]+1; |
| 72 int result = parse_pgn(pgn, &gamestate); |
71 int result = parse_pgn(pgn, &gamestate); |