summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2024-03-10 20:43:13 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2024-03-10 20:43:13 +0100
commit0cebc901e79c21168601071e29ed8e4f4b6f9505 (patch)
treed917fc4bb1ecedb1794f09ded08c478b0be301dd /Makefile
parent0f29ac59c2bf0e5eafc2a6fa436e3070085e3a1d (diff)
add tests for Fenwick Tree
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 10adf28..2e05265 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,8 @@
-TESTS = graph/test/binary_lifting.test graph/test/LCA_sparse.test
+TESTS = \
+ datastructures/test/fenwickTree.test \
+ datastructures/test/fenwickTree2.test \
+ graph/test/binary_lifting.test \
+ graph/test/LCA_sparse.test
pdf:
latexmk -pdf tcr
@@ -23,6 +27,10 @@ cleantest:
g++ -include test.h -std=gnu++20 -Wall -Wextra -Wpedantic -Werror \
-fsanitize=address,undefined -g -o $@ $<
+datastructures/test/fenwickTree.test: datastructures/test/fenwickTree.cpp \
+ datastructures/fenwickTree.cpp
+datastructures/test/fenwickTree2.test: datastructures/test/fenwickTree2.cpp \
+ datastructures/fenwickTree2.cpp
graph/test/binary_lifting.test: graph/test/binary_lifting.cpp \
graph/binary_lifting.cpp graph/test/util.cpp
graph/test/LCA_sparse.test: graph/test/LCA_sparse.cpp \