Strings are surrounded with " by mock::format

git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@11 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
mat007 2009-08-30 21:42:32 +00:00
parent 1bee70f758
commit a03f8d7ceb
6 changed files with 35 additions and 15 deletions

View file

@ -608,8 +608,8 @@ BOOST_AUTO_TEST_CASE( expectation_can_be_serialized_to_be_human_readable )
std::stringstream s;
s << e;
const std::string expected = "?\n"
"v expect( never() ).with( less( first ) )\n"
". expect( exactly( 1/2 ) ).with( second )";
"v expect( never() ).with( less( \"first\" ) )\n"
". expect( exactly( 1/2 ) ).with( \"second\" )";
BOOST_CHECK_EQUAL( expected, s.str() );
}
BOOST_CHECK_NO_THROW( e( "second" ) );
@ -617,8 +617,8 @@ BOOST_AUTO_TEST_CASE( expectation_can_be_serialized_to_be_human_readable )
std::stringstream s;
s << e;
const std::string expected = "?\n"
"v expect( never() ).with( less( first ) )\n"
"v expect( exactly( 2/2 ) ).with( second )";
"v expect( never() ).with( less( \"first\" ) )\n"
"v expect( exactly( 2/2 ) ).with( \"second\" )";
BOOST_CHECK_EQUAL( expected, s.str() );
}
e.reset();