Skip to content

Commit

Permalink
Increase the floating point comparison tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
djowel committed Sep 1, 2024
1 parent 4ec41e0 commit 4601e51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ void compare_golden(char const* name)
std::vector<float> b(golden.length());
golden.read(b);

constexpr auto tolerance = 1e-8;
constexpr auto tolerance = 1e-6;

REQUIRE(a.size() == b.size());
for (std::size_t i = 0; i < a.size(); ++i)
Expand Down

0 comments on commit 4601e51

Please sign in to comment.