summaryrefslogtreecommitdiff
path: root/datastructures
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2024-05-02 20:59:15 +0200
committerGloria Mundi <gloria@gloria-mundi.eu>2024-05-02 20:59:15 +0200
commit2ecbcca9952475c40bfd2a936b7631b236dfc922 (patch)
tree28842d3ae000518757e93d79d0e5df0e11bb7ef2 /datastructures
parent34c882ab75a60699429421684a9867cce0a22110 (diff)
remove sz() and all() from test.h
Diffstat (limited to 'datastructures')
-rw-r--r--datastructures/test/fenwickTree.cpp1
-rw-r--r--datastructures/test/fenwickTree2.cpp1
-rw-r--r--datastructures/test/monotonicConvexHull.cpp1
-rw-r--r--datastructures/test/persistent.cpp1
-rw-r--r--datastructures/test/sparseTable.cpp2
-rw-r--r--datastructures/test/sparseTableDisjoint.cpp2
6 files changed, 8 insertions, 0 deletions
diff --git a/datastructures/test/fenwickTree.cpp b/datastructures/test/fenwickTree.cpp
index f9dd619..4c9695f 100644
--- a/datastructures/test/fenwickTree.cpp
+++ b/datastructures/test/fenwickTree.cpp
@@ -1,3 +1,4 @@
+#define sz ssize
#include "../fenwickTree.cpp"
void test(int n) {
diff --git a/datastructures/test/fenwickTree2.cpp b/datastructures/test/fenwickTree2.cpp
index 18ebcb7..3567b05 100644
--- a/datastructures/test/fenwickTree2.cpp
+++ b/datastructures/test/fenwickTree2.cpp
@@ -1,3 +1,4 @@
+#define sz ssize
#include "../fenwickTree2.cpp"
void test(int n) {
diff --git a/datastructures/test/monotonicConvexHull.cpp b/datastructures/test/monotonicConvexHull.cpp
index 62ea4cd..08927a2 100644
--- a/datastructures/test/monotonicConvexHull.cpp
+++ b/datastructures/test/monotonicConvexHull.cpp
@@ -1,3 +1,4 @@
+#define sz(X) ((int)size(X))
#include "../monotonicConvexHull.cpp"
int main() {
diff --git a/datastructures/test/persistent.cpp b/datastructures/test/persistent.cpp
index d98569b..5e5f864 100644
--- a/datastructures/test/persistent.cpp
+++ b/datastructures/test/persistent.cpp
@@ -1,3 +1,4 @@
+#define all(X) begin(X), end(X)
#include "../persistent.cpp"
int main() {
diff --git a/datastructures/test/sparseTable.cpp b/datastructures/test/sparseTable.cpp
index ed4d61f..03ef548 100644
--- a/datastructures/test/sparseTable.cpp
+++ b/datastructures/test/sparseTable.cpp
@@ -1,3 +1,5 @@
+#define sz ssize
+#define all(X) begin(X), end(X)
#include "../sparseTable.cpp"
void test(int n) {
diff --git a/datastructures/test/sparseTableDisjoint.cpp b/datastructures/test/sparseTableDisjoint.cpp
index 43c6d6e..7ef6483 100644
--- a/datastructures/test/sparseTableDisjoint.cpp
+++ b/datastructures/test/sparseTableDisjoint.cpp
@@ -1,3 +1,5 @@
+#define sz ssize
+#define all(X) begin(X), end(X)
#include "../sparseTableDisjoint.cpp"
void test(int n) {