summaryrefslogtreecommitdiff
path: root/datastructures/test/monotonicConvexHull.cpp
diff options
context:
space:
mode:
authorGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 01:24:14 +0100
committerGloria Mundi <gloria@gloria-mundi.eu>2024-11-16 01:24:14 +0100
commit98567ec798aa8ca2cfbcb85c774dd470f30e30d4 (patch)
tree5113d5cc24d1ad5f93810b6442ce584a36950dc8 /datastructures/test/monotonicConvexHull.cpp
parentad3856a6b766087df0036de0b556f4700a6498c9 (diff)
parent8d11c6c8213f46f0fa19826917c255edd5d43cb1 (diff)
mzuenni tests
Diffstat (limited to 'datastructures/test/monotonicConvexHull.cpp')
-rw-r--r--datastructures/test/monotonicConvexHull.cpp27
1 files changed, 0 insertions, 27 deletions
diff --git a/datastructures/test/monotonicConvexHull.cpp b/datastructures/test/monotonicConvexHull.cpp
deleted file mode 100644
index 08927a2..0000000
--- a/datastructures/test/monotonicConvexHull.cpp
+++ /dev/null
@@ -1,27 +0,0 @@
-#define sz(X) ((int)size(X))
-#include "../monotonicConvexHull.cpp"
-
-int main() {
- {
- Envelope env;
- env.add(10, 0);
- assert(env.query(0) == 0);
- assert(env.query(1) == 10);
- env.add(8, 5);
- assert(env.query(1) == 10);
- assert(env.query(2) == 20);
- assert(env.query(3) == 29);
- env.add(7, 10);
- assert(env.query(10) == 80);
- env.add(0, 0);
- assert(env.query(11) == 0);
- }
-
- {
- Envelope env;
- env.add(1, 0);
- env.add(0, 10);
- env.add(-1, 10);
- assert(env.query(7) == 3);
- }
-}