Merge pull request #68 from eddyxu/debug_factorial

Use #ifdef to protect calling Factorial in benchmark_test.cc
This commit is contained in:
Dominic Hamon 2014-11-14 09:56:50 -08:00
commit 4249753cd9

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;