diff options
| author | mzuenni <michi.zuendorf@gmail.com> | 2024-08-05 20:10:57 +0200 |
|---|---|---|
| committer | mzuenni <michi.zuendorf@gmail.com> | 2024-08-05 20:10:57 +0200 |
| commit | bbec09408867e82fb9dd9b242e6d99014f9534b6 (patch) | |
| tree | acae6ce6522ee96f3f12ac6e7726a2eeee1c1216 /test/datastructures/monotonicConvexHull.cpp | |
| parent | ff3b67478b1f08b0a2b83565de8a454e23441f3a (diff) | |
more tests
Diffstat (limited to 'test/datastructures/monotonicConvexHull.cpp')
| -rw-r--r-- | test/datastructures/monotonicConvexHull.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/test/datastructures/monotonicConvexHull.cpp b/test/datastructures/monotonicConvexHull.cpp index 0d4e10d..4dafbd4 100644 --- a/test/datastructures/monotonicConvexHull.cpp +++ b/test/datastructures/monotonicConvexHull.cpp @@ -23,7 +23,7 @@ void stress_test(ll range) { MCH mch; for (ll m : ms) { - ll c = Random::integer<ll>(-1000, 1000); + ll c = Random::integer<ll>(-range, range); mch.add(m, c); naive.emplace_back(m, c); @@ -34,11 +34,6 @@ void stress_test(ll range) { ll expected = naive[0](x); for (auto l : naive) expected = min(expected, l(x)); - if (got != expected) { - for (auto l : naive) cerr << l.m << "*x+" << l.c << endl; - cerr << x << ": " << got << " " << expected << endl; - } - if (got != expected) cerr << "got: " << got << ", expected: " << expected << FAIL; queries++; } |
