From 6a7bffb34d4b0124841d32aac47780597878a1ff Mon Sep 17 00:00:00 2001 From: Shane Grant Date: Wed, 27 Jan 2016 15:22:43 -0800 Subject: [PATCH] fix double comparison for variant test #230 --- unittests/boost_variant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittests/boost_variant.cpp b/unittests/boost_variant.cpp index 1b2eb9e2..3bb9d75f 100644 --- a/unittests/boost_variant.cpp +++ b/unittests/boost_variant.cpp @@ -60,7 +60,7 @@ void test_boost_variant() } BOOST_CHECK_EQUAL( boost::get(i_bv1), boost::get(o_bv1) ); - BOOST_CHECK_EQUAL( boost::get(i_bv2), boost::get(o_bv2) ); + BOOST_CHECK_CLOSE( boost::get(i_bv2), boost::get(o_bv2), 1e-5 ); BOOST_CHECK_EQUAL( boost::get(i_bv3), boost::get(o_bv3) ); }