From 125f6c2a8090c0d5599a42e0fee78b34c70b4eae Mon Sep 17 00:00:00 2001 From: mat007 Date: Sat, 1 Sep 2012 21:43:27 +0000 Subject: [PATCH] Fixed test_check git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@546 860be788-9bd5-4423-9f1e-828f051e677b --- test/detail/test_check.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/detail/test_check.cpp b/test/detail/test_check.cpp index a4250c6..fe30012 100644 --- a/test/detail/test_check.cpp +++ b/test/detail/test_check.cpp @@ -14,7 +14,7 @@ namespace template< typename Expected, typename Actual > bool check( Expected expected, Actual actual ) { - return mock::detail::check< Expected, Actual >( expected )( actual ); + return mock::detail::check< Actual, Expected >( expected )( actual ); } } @@ -27,6 +27,6 @@ BOOST_AUTO_TEST_CASE( int_and_int_can_be_compared ) BOOST_AUTO_TEST_CASE( ref_to_int_and_int_can_be_compared ) { - BOOST_CHECK( check< int >( boost::cref( 3 ), 3 ) ); - BOOST_CHECK( ! check< int >( boost::cref( 3 ), 4 ) ); + BOOST_CHECK( check( 3, boost::cref( 3 ) ) ); + BOOST_CHECK( ! check( 4, boost::cref( 3 ) ) ); }