mirror of https://github.com/google/benchmark.git
Use #ifdef to protect calling Factorial in benchmark_test.cc
This commit is contained in:
parent
7e290fb965
commit
0f78cebba5
|
@ -171,7 +171,9 @@ class TestReporter : public benchmark::internal::ConsoleReporter {
|
|||
int main(int argc, const char* argv[]) {
|
||||
benchmark::Initialize(&argc, argv);
|
||||
|
||||
#ifdef DEBUG
|
||||
assert(Factorial(8) == 40320);
|
||||
#endif
|
||||
assert(CalculatePi(1) == 0.0);
|
||||
|
||||
TestReporter test_reporter;
|
||||
|
|
Loading…
Reference in New Issue