Use #ifdef to protect calling Factorial in benchmark_test.cc

This commit is contained in:
Lei Xu 2014-11-13 16:09:21 -08:00
parent 7e290fb965
commit 0f78cebba5
1 changed files with 2 additions and 0 deletions

View File

@ -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;