address review comments

This commit is contained in:
Eric Fiselier 2015-03-17 12:31:46 -04:00
parent 66bf7c8f71
commit efe591015d
1 changed files with 2 additions and 1 deletions

View File

@ -5,6 +5,7 @@
#include <cstdint>
#include <iostream>
#include <limits>
#include <sstream>
#include <string>
@ -69,7 +70,7 @@ BENCHMARK(BM_CalculatePi)->ThreadPerCpu();
int main(int argc, const char* argv[]) {
benchmark::Initialize(&argc, argv);
assert(std::fabs(CalculatePi(1)) < 0.001);
assert(std::fabs(CalculatePi(1)) < std::numeric_limits<float>::epsilon());
TestReporter test_reporter;
benchmark::RunSpecifiedBenchmarks(&test_reporter);