diff options
Diffstat (limited to 'test/math/millerRabin.cpp')
| -rw-r--r-- | test/math/millerRabin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/math/millerRabin.cpp b/test/math/millerRabin.cpp index e7feba1..bdcdee6 100644 --- a/test/math/millerRabin.cpp +++ b/test/math/millerRabin.cpp @@ -90,7 +90,7 @@ void extra_tests() { bool expected = ssize(factors) == 1 && factors.begin()->second == 1; if (got != expected) cerr << "error: " << x << FAIL; } - if (t.time > 10) cerr << "too slow" << FAIL; + if (!sanitize && t.time > 10) cerr << "too slow" << FAIL; cerr << "stress tested: " << t.time << "ms" << endl; } |
