summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-07-20 21:14:44 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-07-20 21:14:44 +0530
commit1ebaab7b771c4c73be66895515f948ffe2394cc0 (patch)
tree47ae3d951056cc9a3e3b4aa76f0b15fd631a16b0 /tests
parenta0970bddbd9f6b97b6a12ba7f73fd1810a2e1e1b (diff)
simple ttable tests
Diffstat (limited to 'tests')
-rw-r--r--tests/generated.c15
-rw-r--r--tests/main.c2
2 files changed, 13 insertions, 4 deletions
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"