Commit efe59101 by Eric Fiselier

address review comments

parent 66bf7c8f
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment