summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-07-16 14:08:24 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-07-16 14:08:24 +0530
commit1a52152852ff29c727673fc80e8bf8eca5ed6365 (patch)
treee719771aa1b23f0b8774814ee907057f86f1dda1 /tests
parent6ac448727e1e26c78055eaaa361217f64393d808 (diff)
starting pos, move count, test pass
Diffstat (limited to 'tests')
-rw-r--r--tests/generated.c23
-rw-r--r--tests/main.c2
2 files changed, 15 insertions, 10 deletions
diff --git a/tests/generated.c b/tests/generated.c
index 777f8b1..43145e0 100644
--- a/tests/generated.c
+++ b/tests/generated.c
@@ -1,25 +1,30 @@
-#include "../src/engine/fen.c"
+#include "../src/fen.c"
+#include "../src/engine/moves.c"
#include "../src/engine/moves/king.c"
#include "../src/uci/command.c"
-int total_test_count = 7;
-bool (*tests[7])(void) = {
+int total_test_count = 9;
+bool (*tests[9])(void) = {
test_fen_no_passant,
test_fen_passant,
test_starting_position,
+ test_perft_starting_position,
+ test_perft_kiwipete_position,
test_white_king_corners,
test_black_king_corners,
- test_ucicmd,
- test_invalid_cmd_ucicmd,
+ test_uci_cmd_t,
+ test_invalid_cmd_uci_cmd_t,
};
-int max_test_name_size = 18;
-char test_names[7][100] = {
+int max_test_name_size = 23;
+char test_names[9][100] = {
"fen_no_passant",
"fen_passant",
"starting_position",
+ "perft_starting_position",
+ "perft_kiwipete_position",
"white_king_corners",
"black_king_corners",
- "ucicmd",
- "invalid_cmd_ucicmd",
+ "uci_cmd_t",
+ "invalid_cmd_uci_cmd_t",
};
diff --git a/tests/main.c b/tests/main.c
index 191f0dd..ff7560d 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -22,7 +22,7 @@ int main() {
padded_testname[j] = test_names[i][j];
j++;
}
- while (j < max_test_name_size + 2) {
+ while (j < max_test_name_size + 2 - 1) {
padded_testname[j++] = ' ';
}
padded_testname[j] = 0;