mirror of
https://github.com/mat007/turtle.git
synced 2026-06-22 12:13:43 +00:00
Refactoring
git-svn-id: https://svn.code.sf.net/p/turtle/code/trunk@168 860be788-9bd5-4423-9f1e-828f051e677b
This commit is contained in:
parent
0cc0d83d1f
commit
542984c2b6
2 changed files with 9 additions and 37 deletions
|
|
@ -57,9 +57,9 @@ namespace
|
|||
};
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( custom_type_convertible_to_base_type_yields_its_value_when_serialized )
|
||||
BOOST_AUTO_TEST_CASE( custom_type_convertible_to_base_type_yields_an_interrogation_mark_when_serialized )
|
||||
{
|
||||
BOOST_CHECK_EQUAL( "12", mock::format( convertible_to_int() ) );
|
||||
BOOST_CHECK_EQUAL( "?", mock::format( convertible_to_int() ) );
|
||||
}
|
||||
|
||||
namespace
|
||||
|
|
@ -77,9 +77,9 @@ namespace
|
|||
};
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( custom_type_convertible_to_another_type_serializable_in_standard_stream_yields_its_value_when_serialized )
|
||||
BOOST_AUTO_TEST_CASE( custom_type_convertible_to_another_type_serializable_in_standard_stream_yields_an_interrogation_mark_when_serialized )
|
||||
{
|
||||
BOOST_CHECK_EQUAL( "serializable", mock::format( convertible_to_serializable() ) );
|
||||
BOOST_CHECK_EQUAL( "?", mock::format( convertible_to_serializable() ) );
|
||||
}
|
||||
|
||||
BOOST_AUTO_TEST_CASE( booleans_are_serialized_as_booleans )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue