Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/ToStringWhich.cpp
diff options
context:
space:
mode:
authorPhil Nash2014-09-04 07:27:09 +0100
committerPhil Nash2014-09-04 07:27:09 +0100
commit886ef1620a224b1fd3d15001dcae4fc9a5e71c83 (patch)
tree70e720ee5277c49d7dcc5dcf8b99b6e6cf186068 /projects/SelfTest/ToStringWhich.cpp
parent4caabfa45ebe21cf9c0c07e04af3cd43614a984c (diff)
downloadcatch3-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.cpp18
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> }" );