Removed unnecessary backslashes

This commit is contained in:
Mathieu Champlon 2015-09-04 22:33:48 +02:00
parent 203aa7bfa5
commit 1a18870056

View file

@ -34,26 +34,26 @@ namespace mock
# pragma push_macro( "small" ) # pragma push_macro( "small" )
# undef small # undef small
#endif #endif
MOCK_NARY_CONSTRAINT( small, 1, ( expected ), \ MOCK_NARY_CONSTRAINT( small, 1, ( expected ),
( boost::test_tools::check_is_small( actual, expected ) ) ) ( boost::test_tools::check_is_small( actual, expected ) ) )
#ifdef BOOST_MSVC #ifdef BOOST_MSVC
# pragma pop_macro( "small" ) # pragma pop_macro( "small" )
#endif #endif
MOCK_NARY_CONSTRAINT( close, 2, ( expected, tolerance ), \ MOCK_NARY_CONSTRAINT( close, 2, ( expected, tolerance ),
( boost::test_tools::check_is_close( \ ( boost::test_tools::check_is_close(
actual, expected, \ actual, expected,
boost::test_tools::percent_tolerance( tolerance ) ) ) ) boost::test_tools::percent_tolerance( tolerance ) ) ) )
MOCK_NARY_CONSTRAINT( close_fraction, 2, ( expected, tolerance ), \ MOCK_NARY_CONSTRAINT( close_fraction, 2, ( expected, tolerance ),
( boost::test_tools::check_is_close( \ ( boost::test_tools::check_is_close(
actual, expected, \ actual, expected,
boost::test_tools::fraction_tolerance( tolerance ) ) ) ) boost::test_tools::fraction_tolerance( tolerance ) ) ) )
#ifdef BOOST_MSVC #ifdef BOOST_MSVC
# pragma push_macro( "near" ) # pragma push_macro( "near" )
# undef near # undef near
#endif #endif
MOCK_NARY_CONSTRAINT( near, 2, ( expected, tolerance ), \ MOCK_NARY_CONSTRAINT( near, 2, ( expected, tolerance ),
std::abs( actual - expected ) < tolerance ) std::abs( actual - expected ) < tolerance )
#ifdef BOOST_MSVC #ifdef BOOST_MSVC
# pragma pop_macro( "near" ) # pragma pop_macro( "near" )