Skip to content

Commit

Permalink
Fix macro for double comparison in unit test
Browse files Browse the repository at this point in the history
relates USCiLab#338
  • Loading branch information
AzothAmmo authored and JerryRyan committed Jan 5, 2020
1 parent 51cbda5 commit 038e034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unittests/portable_binary_archive.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ inline void swapBytes( T & t )
CHECK_EQ(i_uint64 , o_uint64); \
CHECK_EQ(i_int64 , o_int64); \
if( !std::isnan(i_float) && !std::isnan(o_float) ) CHECK_EQ(i_float , doctest::Approx(o_float).epsilon(1e-5F)); \
if( !std::isnan(i_float) && !std::isnan(o_float) ) CHECK_EQ(i_double, doctest::Approx(o_double).epsilon(1e-5));
if( !std::isnan(i_double) && !std::isnan(o_double) ) CHECK_EQ(i_double, doctest::Approx(o_double).epsilon(1e-5));

// Last parameter exists to keep everything hidden in options
template <class IArchive, class OArchive> inline
Expand Down

0 comments on commit 038e034

Please sign in to comment.