Simplification

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@54 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2009-09-27 09:26:10 +00:00
parent 3f118a8164
commit ed5ae2b859
3 changed files with 5 additions and 5 deletions

View file

@ -133,7 +133,7 @@ BOOST_AUTO_TEST_CASE( mock_functor_in_function_is_supported )
boost::function< int( float, const std::string& ) > func;
{
MOCK_FUNCTOR( int( float, const std::string& ) ) f;
MOCK_EXPECT(f, operator).once().with( 3, "op" ).returns( 42 );
MOCK_EXPECT( f, _ ).once().with( 3, "op" ).returns( 42 );
func = f;
}
BOOST_CHECK_EQUAL( 42, func( 3, "op" ) );
@ -154,7 +154,7 @@ namespace
BOOST_FIXTURE_TEST_CASE( mock_functor_in_fixture_is_supported, functor_fixture )
{
MOCK_EXPECT(f, operator).once().with( 3, "op" ).returns( 42 );
MOCK_EXPECT( f, _ ).once().with( 3, "op" ).returns( 42 );
BOOST_CHECK_EQUAL( 42, f( 3.f, "op" ) );
}