diff options
| author | Phil Nash | 2017-11-13 16:03:27 +0000 |
|---|---|---|
| committer | Phil Nash | 2017-11-13 16:03:27 +0000 |
| commit | 74d3dfd4cc45088f3f7ab82c2168dbfd43cb048c (patch) | |
| tree | 7f72dafe4a3f23c565977dee9838d6cc26e52848 /projects | |
| parent | e34754e4331ef5b161555495d13549a2a13f81b2 (diff) | |
| download | catch3-74d3dfd4cc45088f3f7ab82c2168dbfd43cb048c.tar.gz | |
All tests files have .tests.cpp suffix. Also moved tests out of TestMain.cpp and moved up a level
Diffstat (limited to 'projects')
| -rw-r--r-- | projects/SelfTest/Baselines/console.std.approved.txt | 380 | ||||
| -rw-r--r-- | projects/SelfTest/Baselines/console.sw.approved.txt | 2616 | ||||
| -rw-r--r-- | projects/SelfTest/Baselines/console.swa4.approved.txt | 88 | ||||
| -rw-r--r-- | projects/SelfTest/Baselines/junit.sw.approved.txt | 250 | ||||
| -rw-r--r-- | projects/SelfTest/Baselines/xml.sw.approved.txt | 2724 | ||||
| -rw-r--r-- | projects/SelfTest/IntrospectiveTests/CmdLine.tests.cpp (renamed from projects/SelfTest/IntrospectiveTests/CmdLineTests.cpp) | 193 | ||||
| -rw-r--r-- | projects/SelfTest/IntrospectiveTests/PartTracker.tests.cpp (renamed from projects/SelfTest/IntrospectiveTests/PartTrackerTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/IntrospectiveTests/String.tests.cpp (renamed from projects/SelfTest/IntrospectiveTests/StringRef.tests.cpp) | 33 | ||||
| -rw-r--r-- | projects/SelfTest/IntrospectiveTests/TagAlias.tests.cpp (renamed from projects/SelfTest/IntrospectiveTests/TagAliasTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/IntrospectiveTests/TestMain.cpp | 268 | ||||
| -rw-r--r-- | projects/SelfTest/IntrospectiveTests/Xml.tests.cpp (renamed from projects/SelfTest/IntrospectiveTests/XmlTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/TestMain.cpp | 33 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/Approx.tests.cpp (renamed from projects/SelfTest/UsageTests/ApproxTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/BDD.tests.cpp (renamed from projects/SelfTest/UsageTests/BDDTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/Class.tests.cpp (renamed from projects/SelfTest/UsageTests/ClassTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/Compilation.tests.cpp (renamed from projects/SelfTest/UsageTests/CompilationTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/Condition.tests.cpp (renamed from projects/SelfTest/UsageTests/ConditionTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/Decomposition.tests.cpp (renamed from projects/SelfTest/UsageTests/DecompositionTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/EnumToString.tests.cpp (renamed from projects/SelfTest/UsageTests/EnumToString.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/Exception.tests.cpp (renamed from projects/SelfTest/UsageTests/ExceptionTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/Matchers.tests.cpp (renamed from projects/SelfTest/UsageTests/MatchersTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/Message.tests.cpp (renamed from projects/SelfTest/UsageTests/MessageTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/Misc.tests.cpp (renamed from projects/SelfTest/UsageTests/MiscTests.cpp) | 10 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/ToStringChrono.tests.cpp (renamed from projects/SelfTest/UsageTests/ToStringChrono.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp (renamed from projects/SelfTest/UsageTests/ToStringGeneralTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/ToStringPair.tests.cpp (renamed from projects/SelfTest/UsageTests/ToStringPair.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/ToStringTuple.tests.cpp (renamed from projects/SelfTest/UsageTests/ToStringTuple.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/ToStringVector.tests.cpp (renamed from projects/SelfTest/UsageTests/ToStringVector.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/ToStringWhich.tests.cpp (renamed from projects/SelfTest/UsageTests/ToStringWhich.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/Tricky.tests.cpp (renamed from projects/SelfTest/UsageTests/TrickyTests.cpp) | 0 | ||||
| -rw-r--r-- | projects/SelfTest/UsageTests/VariadicMacros.tests.cpp (renamed from projects/SelfTest/UsageTests/VariadicMacrosTests.cpp) | 0 |
31 files changed, 3298 insertions, 3297 deletions
diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt index 8fab7581..643f91da 100644 --- a/projects/SelfTest/Baselines/console.std.approved.txt +++ b/projects/SelfTest/Baselines/console.std.approved.txt @@ -7,10 +7,10 @@ Run with -? for options #748 - captures with unexpected exceptions outside assertions ------------------------------------------------------------------------------- -ExceptionTests.cpp:<line number> +Exception.tests.cpp:<line number> ............................................................................... -ExceptionTests.cpp:<line number>: FAILED: +Exception.tests.cpp:<line number>: FAILED: due to unexpected exception with messages: answer := 42 expected exception @@ -19,10 +19,10 @@ due to unexpected exception with messages: #748 - captures with unexpected exceptions inside REQUIRE_NOTHROW ------------------------------------------------------------------------------- -ExceptionTests.cpp:<line number> +Exception.tests.cpp:<line number> ............................................................................... -ExceptionTests.cpp:<line number>: FAILED: +Exception.tests.cpp:<line number>: FAILED: REQUIRE_NOTHROW( thisThrows() ) due to unexpected exception with messages: answer := 42 @@ -31,10 +31,10 @@ due to unexpected exception with messages: ------------------------------------------------------------------------------- #835 -- errno should not be touched by Catch ------------------------------------------------------------------------------- -MiscTests.cpp:<line number> +Misc.tests.cpp:<line number> ............................................................................... -MiscTests.cpp:<line number>: FAILED: +Misc.tests.cpp:<line number>: FAILED: CHECK( f() == 0 ) with expansion: 1 == 0 @@ -42,50 +42,50 @@ with expansion: ------------------------------------------------------------------------------- 'Not' checks that should fail ------------------------------------------------------------------------------- -ConditionTests.cpp:<line number> +Condition.tests.cpp:<line number> ............................................................................... -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( false != false ) -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( true != true ) -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( !true ) with expansion: false -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK_FALSE( true ) with expansion: !true -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( !trueValue ) with expansion: false -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK_FALSE( trueValue ) with expansion: !true -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( !(1 == 1) ) with expansion: false -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK_FALSE( 1 == 1 ) ------------------------------------------------------------------------------- A METHOD_AS_TEST_CASE based test run that fails ------------------------------------------------------------------------------- -ClassTests.cpp:<line number> +Class.tests.cpp:<line number> ............................................................................... -ClassTests.cpp:<line number>: FAILED: +Class.tests.cpp:<line number>: FAILED: REQUIRE( s == "world" ) with expansion: "hello" == "world" @@ -93,10 +93,10 @@ with expansion: ------------------------------------------------------------------------------- A TEST_CASE_METHOD based test run that fails ------------------------------------------------------------------------------- -ClassTests.cpp:<line number> +Class.tests.cpp:<line number> ............................................................................... -ClassTests.cpp:<line number>: FAILED: +Class.tests.cpp:<line number>: FAILED: REQUIRE( m_a == 2 ) with expansion: 1 == 2 @@ -104,25 +104,25 @@ with expansion: ------------------------------------------------------------------------------- A couple of nested sections followed by a failure ------------------------------------------------------------------------------- -MiscTests.cpp:<line number> +Misc.tests.cpp:<line number> ............................................................................... -MiscTests.cpp:<line number>: FAILED: +Misc.tests.cpp:<line number>: FAILED: explicitly with message: to infinity and beyond ------------------------------------------------------------------------------- A failing expression with a non streamable type is still captured ------------------------------------------------------------------------------- -TrickyTests.cpp:<line number> +Tricky.tests.cpp:<line number> ............................................................................... -TrickyTests.cpp:<line number>: FAILED: +Tricky.tests.cpp:<line number>: FAILED: CHECK( &o1 == &o2 ) with expansion: 0x<hex digits> == 0x<hex digits> -TrickyTests.cpp:<line number>: FAILED: +Tricky.tests.cpp:<line number>: FAILED: CHECK( o1 == o2 ) with expansion: {?} == {?} @@ -130,10 +130,10 @@ with expansion: ------------------------------------------------------------------------------- An unchecked exception reports the line of the last assertion ------------------------------------------------------------------------------- -ExceptionTests.cpp:<line number> +Exception.tests.cpp:<line number> ............................................................................... -ExceptionTests.cpp:<line number>: FAILED: +Exception.tests.cpp:<line number>: FAILED: {Unknown expression after the reported line} due to unexpected exception with message: unexpected exception @@ -141,16 +141,16 @@ due to unexpected exception with message: ------------------------------------------------------------------------------- Contains string matcher ------------------------------------------------------------------------------- -MatchersTests.cpp:<line number> +Matchers.tests.cpp:<line number> ............................................................................... -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: CHECK_THAT( testStringForMatching(), Contains( "not there", Catch::CaseSensitive::No ) ) with expansion: "this string contains 'abc' as a substring" contains: "not there" (case insensitive) -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: CHECK_THAT( testStringForMatching(), Contains( "STRING" ) ) with expansion: "this string contains 'abc' as a substring" contains: "STRING" @@ -158,10 +158,10 @@ with expansion: ------------------------------------------------------------------------------- Custom exceptions can be translated when testing for nothrow ------------------------------------------------------------------------------- -ExceptionTests.cpp:<line number> +Exception.tests.cpp:<line number> ............................................................................... -ExceptionTests.cpp:<line number>: FAILED: +Exception.tests.cpp:<line number>: FAILED: REQUIRE_NOTHROW( throwCustom() ) due to unexpected exception with message: custom exception - not std @@ -169,10 +169,10 @@ due to unexpected exception with message: ------------------------------------------------------------------------------- Custom exceptions can be translated when testing for throwing as something else ------------------------------------------------------------------------------- -ExceptionTests.cpp:<line number> +Exception.tests.cpp:<line number> ............................................................................... -ExceptionTests.cpp:<line number>: FAILED: +Exception.tests.cpp:<line number>: FAILED: REQUIRE_THROWS_AS( throwCustom(), std::exception ) due to unexpected exception with message: custom exception - not std @@ -180,25 +180,25 @@ due to unexpected exception with message: ------------------------------------------------------------------------------- Custom std-exceptions can be custom translated ------------------------------------------------------------------------------- -ExceptionTests.cpp:<line number> +Exception.tests.cpp:<line number> ............................................................................... -ExceptionTests.cpp:<line number>: FAILED: +Exception.tests.cpp:<line number>: FAILED: due to unexpected exception with message: custom std exception ------------------------------------------------------------------------------- EndsWith string matcher ------------------------------------------------------------------------------- -MatchersTests.cpp:<line number> +Matchers.tests.cpp:<line number> ............................................................................... -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) ) with expansion: "this string contains 'abc' as a substring" ends with: "Substring" -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) ) with expansion: "this string contains 'abc' as a substring" ends with: "this" (case @@ -207,70 +207,70 @@ with expansion: ------------------------------------------------------------------------------- Equality checks that should fail ------------------------------------------------------------------------------- -ConditionTests.cpp:<line number> +Condition.tests.cpp:<line number> ............................................................................... -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.int_seven == 6 ) with expansion: 7 == 6 -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.int_seven == 8 ) with expansion: 7 == 8 -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.int_seven == 0 ) with expansion: 7 == 0 -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.float_nine_point_one == Approx( 9.11f ) ) with expansion: 9.1f == Approx( 9.1099996567 ) -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.float_nine_point_one == Approx( 9.0f ) ) with expansion: 9.1f == Approx( 9.0 ) -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.float_nine_point_one == Approx( 1 ) ) with expansion: 9.1f == Approx( 1.0 ) -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.float_nine_point_one == Approx( 0 ) ) with expansion: 9.1f == Approx( 0.0 ) -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.double_pi == Approx( 3.1415 ) ) with expansion: 3.1415926535 == Approx( 3.1415 ) -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.str_hello == "goodbye" ) with expansion: "hello" == "goodbye" -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.str_hello == "hell" ) with expansion: "hello" == "hell" -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.str_hello == "hello1" ) with expansion: "hello" == "hello1" -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.str_hello.size() == 6 ) with expansion: 5 == 6 -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( x == Approx( 1.301 ) ) with expansion: 1.3 == Approx( 1.301 ) @@ -278,16 +278,16 @@ with expansion: ------------------------------------------------------------------------------- Equals string matcher ------------------------------------------------------------------------------- -MatchersTests.cpp:<line number> +Matchers.tests.cpp:<line number> ............................................................................... -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) ) with expansion: "this string contains 'abc' as a substring" equals: "this string contains 'ABC' as a substring" -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) ) with expansion: "this string contains 'abc' as a substring" equals: "something else" (case @@ -297,14 +297,14 @@ with expansion: Exception matchers that fail No exception ------------------------------------------------------------------------------- -MatchersTests.cpp:<line number> +Matchers.tests.cpp:<line number> ............................................................................... -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } ) because no exception was thrown where one was expected: -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } ) because no exception was thrown where one was expected: @@ -312,15 +312,15 @@ because no exception was thrown where one was expected: Exception matchers that fail Type mismatch ------------------------------------------------------------------------------- -MatchersTests.cpp:<line number> +Matchers.tests.cpp:<line number> ............................................................................... -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: CHECK_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{ 1 } ) due to unexpected exception with message: Unknown exception -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: REQUIRE_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{ 1 } ) due to unexpected exception with message: Unknown exception @@ -329,15 +329,15 @@ due to unexpected exception with message: Exception matchers that fail Contents are wrong ------------------------------------------------------------------------------- -MatchersTests.cpp:<line number> +Matchers.tests.cpp:<line number> ............................................................................... -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: CHECK_THROWS_MATCHES( throws(3), SpecialException, ExceptionMatcher{ 1 } ) with expansion: {?} special exception has value of 1 -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: REQUIRE_THROWS_MATCHES( throws(4), SpecialException, ExceptionMatcher{ 1 } ) with expansion: {?} special exception has value of 1 @@ -345,19 +345,19 @@ with expansion: ------------------------------------------------------------------------------- Expected exceptions that don't throw or unexpected exceptions fail the test ------------------------------------------------------------------------------- -ExceptionTests.cpp:<line number> +Exception.tests.cpp:<line number> ............................................................................... -ExceptionTests.cpp:<line number>: FAILED: +Exception.tests.cpp:<line number>: FAILED: CHECK_THROWS_AS( thisThrows(), std::string ) due to unexpected exception with message: expected exception -ExceptionTests.cpp:<line number>: FAILED: +Exception.tests.cpp:<line number>: FAILED: CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error ) because no exception was thrown where one was expected: -ExceptionTests.cpp:<line number>: FAILED: +Exception.tests.cpp:<line number>: FAILED: CHECK_NOTHROW( thisThrows() ) due to unexpected exception with message: expected exception @@ -365,52 +365,52 @@ due to unexpected exception with message: ------------------------------------------------------------------------------- FAIL aborts the test ------------------------------------------------------------------------------- -MessageTests.cpp:<line number> +Message.tests.cpp:<line number> ............................................................................... -MessageTests.cpp:<line number>: FAILED: +Message.tests.cpp:<line number>: FAILED: explicitly with message: This is a failure ------------------------------------------------------------------------------- FAIL does not require an argument ------------------------------------------------------------------------------- -MessageTests.cpp:<line number> +Message.tests.cpp:<line number> ............................................................................... -MessageTests.cpp:<line number>: FAILED: +Message.tests.cpp:<line number>: FAILED: ------------------------------------------------------------------------------- FAIL_CHECK does not abort the test ------------------------------------------------------------------------------- -MessageTests.cpp:<line number> +Message.tests.cpp:<line number> ............................................................................... -MessageTests.cpp:<line number>: FAILED: +Message.tests.cpp:<line number>: FAILED: explicitly with message: This is a failure -MessageTests.cpp:<line number>: +Message.tests.cpp:<line number>: warning: This message appears in the output ------------------------------------------------------------------------------- INFO and WARN do not abort tests ------------------------------------------------------------------------------- -MessageTests.cpp:<line number> +Message.tests.cpp:<line number> ............................................................................... -MessageTests.cpp:<line number>: +Message.tests.cpp:<line number>: warning: this is a warning ------------------------------------------------------------------------------- INFO gets logged on failure ------------------------------------------------------------------------------- -MessageTests.cpp:<line number> +Message.tests.cpp:<line number> ............................................................................... -MessageTests.cpp:<line number>: FAILED: +Message.tests.cpp:<line number>: FAILED: REQUIRE( a == 1 ) with expansion: 2 == 1 @@ -421,10 +421,10 @@ with messages: ------------------------------------------------------------------------------- INFO gets logged on failure, even if captured before successful assertions ------------------------------------------------------------------------------- -MessageTests.cpp:<line number> +Message.tests.cpp:<line number> ............................................................................... -MessageTests.cpp:<line number>: FAILED: +Message.tests.cpp:<line number>: FAILED: CHECK( a == 1 ) with expansion: 2 == 1 @@ -432,7 +432,7 @@ with messages: this message may be logged later this message should be logged -MessageTests.cpp:<line number>: FAILED: +Message.tests.cpp:<line number>: FAILED: CHECK( a == 0 ) with expansion: 2 == 0 @@ -444,10 +444,10 @@ with messages: ------------------------------------------------------------------------------- INFO is reset for each loop ------------------------------------------------------------------------------- -MessageTests.cpp:<line number> +Message.tests.cpp:<line number> ............................................................................... -MessageTests.cpp:<line number>: FAILED: +Message.tests.cpp:<line number>: FAILED: REQUIRE( i < 10 ) with expansion: 10 < 10 @@ -458,30 +458,30 @@ with messages: ------------------------------------------------------------------------------- Inequality checks that should fail ------------------------------------------------------------------------------- -ConditionTests.cpp:<line number> +Condition.tests.cpp:<line number> ............................................................................... -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.int_seven != 7 ) with expansion: 7 != 7 -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.float_nine_point_one != Approx( 9.1f ) ) with expansion: 9.1f != Approx( 9.1000003815 ) -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.double_pi != Approx( 3.1415926535 ) ) with expansion: 3.1415926535 != Approx( 3.1415926535 ) -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.str_hello != "hello" ) with expansion: "hello" != "hello" -ConditionTests.cpp:<line number>: FAILED: +Condition.tests.cpp:<line number>: FAILED: CHECK( data.str_hello.size() != 5 ) with expansion: 5 != 5 @@ -489,10 +489,10 @@ with expansion: ------------------------------------------------------------------------------- Matchers can be composed with both && and || - failing ------------------------------------------------------------------------------- -MatchersTests.cpp:<line number> +Matchers.tests.cpp:<line number> ............................................................................... -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: CHECK_THAT( testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ) ) with expansion: "this string contains 'abc' as a substring" ( ( contains: "string" or @@ -501,10 +501,10 @@ with expansion: ------------------------------------------------------------------------------- Matchers can be negated (Not) with the ! operator - failing ------------------------------------------------------------------------------- -MatchersTests.cpp:<line number> +Matchers.tests.cpp:<line number> ............................................................................... -MatchersTests.cpp:<line number>: FAILED: +Matchers.tests.cpp:<line number>: FAILED: CHECK_THAT( testStringForMatching(), !Contains( "substring" ) ) with expansion: "this string contains 'abc' as a substring" not contains: "substring" @@ -512,10 +512,10 @@ with expansion: ------------------------------------------------------------------------------- Mismatching exception messages failing the test ------------------------------------------------------------------------------- -ExceptionTests.cpp:<line number> +Exception.tests.cpp:<line number> ............................................................................... -ExceptionTests.cpp:<line number>: FAILED: +Exception.tests.cpp:<line number>: FAILED: REQUIRE_THROWS_WITH( thisThrows(), "should fail" ) with expansion: "expected exception" equals: "should fail" @@ -523,120 +523,120 @@ with expansion: ------------------------------------------------------------------------------- Nice descriptive name ---------------------------------- |