From 1ebaab7b771c4c73be66895515f948ffe2394cc0 Mon Sep 17 00:00:00 2001 From: Aargh Rai Date: Mon, 20 Jul 2026 21:14:44 +0530 Subject: simple ttable tests --- tests/generated.c | 15 ++++++++++++--- tests/main.c | 2 +- 2 files changed, 13 insertions(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/generated.c b/tests/generated.c index f2ee156..7de9c24 100644 --- a/tests/generated.c +++ b/tests/generated.c @@ -1,13 +1,18 @@ #include "../src/fen.c" +#include "../src/engine/ttable.c" #include "../src/engine/moves.c" #include "../src/engine/moves/king.c" #include "../src/uci/command.c" -int total_test_count = 10; -bool (*tests[10])(void) = { +int total_test_count = 14; +bool (*tests[14])(void) = { test_fen_no_passant, test_fen_passant, test_starting_position, + test_empty_ttable, + test_ttable_insert_and_find, + test_ttable_wrong_key, + test_ttable_update_existing, test_perft_starting_position, test_perft_kiwipete_position, test_perft_position3, @@ -18,10 +23,14 @@ bool (*tests[10])(void) = { }; int max_test_name_size = 23; -char test_names[10][100] = { +char test_names[14][100] = { "fen_no_passant", "fen_passant", "starting_position", + "empty_ttable", + "ttable_insert_and_find", + "ttable_wrong_key", + "ttable_update_existing", "perft_starting_position", "perft_kiwipete_position", "perft_position3", diff --git a/tests/main.c b/tests/main.c index 800e80d..4ab84c6 100644 --- a/tests/main.c +++ b/tests/main.c @@ -50,4 +50,4 @@ int main() { return return_type; } -#include "random.c" +#include "../src/random.c" -- cgit v1.2.3