summaryrefslogtreecommitdiff
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
parent34c882ab75a60699429421684a9867cce0a22110 (diff)
remove sz() and all() from test.h
-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
-rw-r--r--graph/test/LCA_sparse.cpp2
-rw-r--r--test.h2
8 files changed, 10 insertions, 2 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) {
diff --git a/graph/test/LCA_sparse.cpp b/graph/test/LCA_sparse.cpp
index c45111c..c8b0017 100644
--- a/graph/test/LCA_sparse.cpp
+++ b/graph/test/LCA_sparse.cpp
@@ -1,4 +1,6 @@
#include "util.cpp"
+#define all(X) begin(X), end(X)
+#define sz ssize
#include "../../datastructures/sparseTable.cpp"
#include "../LCA_sparse.cpp"
diff --git a/test.h b/test.h
index a3c2ab0..0dfc40a 100644
--- a/test.h
+++ b/test.h
@@ -3,8 +3,6 @@
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
-#define sz(x) ((int)(x).size())
-#define all(x) (x).begin(), (x).end()
template<typename T>
T _lg_check(T n) {