From 6a42db93905a6b12be791c3b2cfff01bfb61451f Mon Sep 17 00:00:00 2001 From: Gahtan Nahdi <155860115+gahtan-syarif@users.noreply.github.com> Date: Sat, 28 Sep 2024 18:17:40 +0700 Subject: [PATCH] test: add tests for timecontrol (#715) --- app/Makefile | 1 + app/tests/timecontrol_test.cpp | 60 ++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 app/tests/timecontrol_test.cpp diff --git a/app/Makefile b/app/Makefile index e5ef34447..513e5eab9 100644 --- a/app/Makefile +++ b/app/Makefile @@ -49,6 +49,7 @@ SRC_FILES_TEST := \ $(TESTDIR)/player.cpp \ $(TESTDIR)/scoreboard_test.cpp \ $(TESTDIR)/sprt_test.cpp \ + $(TESTDIR)/timecontrol_test.cpp \ $(TESTDIR)/uci_engine_test.cpp \ $(TESTDIR)/epd_reader_test.cpp \ $(TESTDIR)/match_test.cpp diff --git a/app/tests/timecontrol_test.cpp b/app/tests/timecontrol_test.cpp new file mode 100644 index 000000000..bbd14cf55 --- /dev/null +++ b/app/tests/timecontrol_test.cpp @@ -0,0 +1,60 @@ +#include