diff options
| author | Phil Nash | 2014-09-04 07:27:09 +0100 |
|---|---|---|
| committer | Phil Nash | 2014-09-04 07:27:09 +0100 |
| commit | 886ef1620a224b1fd3d15001dcae4fc9a5e71c83 (patch) | |
| tree | 70e720ee5277c49d7dcc5dcf8b99b6e6cf186068 /projects/SelfTest/ToStringWhich.cpp | |
| parent | 4caabfa45ebe21cf9c0c07e04af3cd43614a984c (diff) | |
| download | catch3-886ef1620a224b1fd3d15001dcae4fc9a5e71c83.tar.gz | |
Some minor tidy-up/ style alignment of recent toString merges
Diffstat (limited to 'projects/SelfTest/ToStringWhich.cpp')
| -rw-r--r-- | projects/SelfTest/ToStringWhich.cpp | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/projects/SelfTest/ToStringWhich.cpp b/projects/SelfTest/ToStringWhich.cpp index 785c65b7..1d4aa892 100644 --- a/projects/SelfTest/ToStringWhich.cpp +++ b/projects/SelfTest/ToStringWhich.cpp @@ -31,43 +31,37 @@ namespace Catch { } // Call the overload -TEST_CASE( "toString( has_toString )", "[toString]" ) -{ +TEST_CASE( "toString( has_toString )", "[toString]" ) { has_toString item; REQUIRE( Catch::toString( item ) == "toString( has_toString )" ); } // Call the overload -TEST_CASE( "toString( has_maker )", "[toString]" ) -{ +TEST_CASE( "toString( has_maker )", "[toString]" ) { has_maker item; REQUIRE( Catch::toString( item ) == "StringMaker<has_maker>" ); } // Call the overload -TEST_CASE( "toString( has_maker_and_toString )", "[toString]" ) -{ +TEST_CASE( "toString( has_maker_and_toString )", "[toString]" ) { has_maker_and_toString item; REQUIRE( Catch::toString( item ) == "toString( has_maker_and_toString )" ); } // Vectors... -TEST_CASE( "toString( vectors<has_toString )", "[toString]" ) -{ +TEST_CASE( "toString( vectors<has_toString )", "[toString]" ) { std::vector<has_toString> v(1); // This invokes template<T> toString which actually gives us '{ ? }' REQUIRE( Catch::toString( v ) == "{ {?} }" ); } -TEST_CASE( "toString( vectors<has_maker )", "[toString]" ) -{ +TEST_CASE( "toString( vectors<has_maker )", "[toString]" ) { std::vector<has_maker> v(1); REQUIRE( Catch::toString( v ) == "{ StringMaker<has_maker> }" ); } -TEST_CASE( "toString( vectors<has_maker_and_toString )", "[toString]" ) -{ +TEST_CASE( "toString( vectors<has_maker_and_toString )", "[toString]" ) { std::vector<has_maker_and_toString> v(1); // Note: This invokes the template<T> toString -> StringMaker REQUIRE( Catch::toString( v ) == "{ StringMaker<has_maker_and_toString> }" ); |