mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Fixed test_check
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@546 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
b4755bdaf4
commit
125f6c2a80
1 changed files with 3 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ namespace
|
||||||
template< typename Expected, typename Actual >
|
template< typename Expected, typename Actual >
|
||||||
bool check( Expected expected, Actual 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_AUTO_TEST_CASE( ref_to_int_and_int_can_be_compared )
|
||||||
{
|
{
|
||||||
BOOST_CHECK( check< int >( boost::cref( 3 ), 3 ) );
|
BOOST_CHECK( check( 3, boost::cref( 3 ) ) );
|
||||||
BOOST_CHECK( ! check< int >( boost::cref( 3 ), 4 ) );
|
BOOST_CHECK( ! check( 4, boost::cref( 3 ) ) );
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue