From 5366ebf3dfa5372259793fa212d345211664529b Mon Sep 17 00:00:00 2001 From: mat007 Date: Tue, 13 Aug 2013 21:43:45 +0000 Subject: [PATCH] Renaming git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@684 860be788-9bd5-4423-9f1e-828f051e677b --- turtle/constraints.hpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/turtle/constraints.hpp b/turtle/constraints.hpp index 72184e4..f18672d 100644 --- a/turtle/constraints.hpp +++ b/turtle/constraints.hpp @@ -19,28 +19,28 @@ namespace mock { - MOCK_CONSTRAINT_EXT( any, 0,, true && &actual ) - MOCK_CONSTRAINT_EXT( affirm, 0,, !! actual ) - MOCK_CONSTRAINT_EXT( negate, 0,, ! actual ) - MOCK_CONSTRAINT_EXT( evaluate, 0,, actual() ) + MOCK_UNARY_CONSTRAINT( any, 0,, true && &actual ) + MOCK_UNARY_CONSTRAINT( affirm, 0,, !! actual ) + MOCK_UNARY_CONSTRAINT( negate, 0,, ! actual ) + MOCK_UNARY_CONSTRAINT( evaluate, 0,, actual() ) - MOCK_CONSTRAINT_EXT( equal, 1, ( expected ), actual == expected ) - MOCK_CONSTRAINT_EXT( less, 1, ( expected ), actual < expected ) - MOCK_CONSTRAINT_EXT( greater, 1, ( expected ), actual > expected ) - MOCK_CONSTRAINT_EXT( less_equal, 1, ( expected ), actual <= expected ) - MOCK_CONSTRAINT_EXT( greater_equal, 1, ( expected ), actual >= expected ) + MOCK_NARY_CONSTRAINT( equal, 1, ( expected ), actual == expected ) + MOCK_NARY_CONSTRAINT( less, 1, ( expected ), actual < expected ) + MOCK_NARY_CONSTRAINT( greater, 1, ( expected ), actual > expected ) + MOCK_NARY_CONSTRAINT( less_equal, 1, ( expected ), actual <= expected ) + MOCK_NARY_CONSTRAINT( greater_equal, 1, ( expected ), actual >= expected ) - MOCK_CONSTRAINT_EXT( small, 1, ( expected ), \ + MOCK_NARY_CONSTRAINT( small, 1, ( expected ), \ ( boost::test_tools::check_is_small( actual, expected ) ) ) - MOCK_CONSTRAINT_EXT( close, 2, ( expected, tolerance ), \ + MOCK_NARY_CONSTRAINT( close, 2, ( expected, tolerance ), \ ( boost::test_tools::check_is_close( \ actual, expected, \ boost::test_tools::percent_tolerance( tolerance ) ) ) ) - MOCK_CONSTRAINT_EXT( close_fraction, 2, ( expected, tolerance ), \ + MOCK_NARY_CONSTRAINT( close_fraction, 2, ( expected, tolerance ), \ ( boost::test_tools::check_is_close( \ actual, expected, \ boost::test_tools::fraction_tolerance( tolerance ) ) ) ) - MOCK_CONSTRAINT_EXT( near, 2, ( expected, tolerance ), \ + MOCK_NARY_CONSTRAINT( near, 2, ( expected, tolerance ), \ std::abs( actual - expected ) < tolerance ) namespace detail