mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
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:
parent
1bee70f758
commit
a03f8d7ceb
6 changed files with 35 additions and 15 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue