From 1a1887005631a1baafc663052732a37d3e2c26c0 Mon Sep 17 00:00:00 2001 From: Mathieu Champlon Date: Fri, 4 Sep 2015 22:33:48 +0200 Subject: [PATCH] Removed unnecessary backslashes --- include/turtle/constraints.hpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/turtle/constraints.hpp b/include/turtle/constraints.hpp index bc7ea28..c0ce82c 100644 --- a/include/turtle/constraints.hpp +++ b/include/turtle/constraints.hpp @@ -34,26 +34,26 @@ namespace mock # pragma push_macro( "small" ) # undef small #endif - MOCK_NARY_CONSTRAINT( small, 1, ( expected ), \ + MOCK_NARY_CONSTRAINT( small, 1, ( expected ), ( boost::test_tools::check_is_small( actual, expected ) ) ) #ifdef BOOST_MSVC # pragma pop_macro( "small" ) #endif - MOCK_NARY_CONSTRAINT( close, 2, ( expected, tolerance ), \ - ( boost::test_tools::check_is_close( \ - actual, expected, \ + MOCK_NARY_CONSTRAINT( close, 2, ( expected, tolerance ), + ( boost::test_tools::check_is_close( + actual, expected, boost::test_tools::percent_tolerance( tolerance ) ) ) ) - MOCK_NARY_CONSTRAINT( close_fraction, 2, ( expected, tolerance ), \ - ( boost::test_tools::check_is_close( \ - actual, expected, \ + MOCK_NARY_CONSTRAINT( close_fraction, 2, ( expected, tolerance ), + ( boost::test_tools::check_is_close( + actual, expected, boost::test_tools::fraction_tolerance( tolerance ) ) ) ) #ifdef BOOST_MSVC # pragma push_macro( "near" ) # undef near #endif - MOCK_NARY_CONSTRAINT( near, 2, ( expected, tolerance ), \ + MOCK_NARY_CONSTRAINT( near, 2, ( expected, tolerance ), std::abs( actual - expected ) < tolerance ) #ifdef BOOST_MSVC # pragma pop_macro( "near" )