From 74d3dfd4cc45088f3f7ab82c2168dbfd43cb048c Mon Sep 17 00:00:00 2001 From: Phil Nash Date: Mon, 13 Nov 2017 16:03:27 +0000 Subject: [PATCH] All tests files have .tests.cpp suffix. Also moved tests out of TestMain.cpp and moved up a level --- CMakeLists.txt | 50 +- .../Baselines/console.std.approved.txt | 380 +-- .../Baselines/console.sw.approved.txt | 2616 ++++++++-------- .../Baselines/console.swa4.approved.txt | 88 +- .../SelfTest/Baselines/junit.sw.approved.txt | 250 +- .../SelfTest/Baselines/xml.sw.approved.txt | 2724 ++++++++--------- .../{CmdLineTests.cpp => CmdLine.tests.cpp} | 193 ++ ...TrackerTests.cpp => PartTracker.tests.cpp} | 0 .../{StringRef.tests.cpp => String.tests.cpp} | 33 + .../{TagAliasTests.cpp => TagAlias.tests.cpp} | 0 .../SelfTest/IntrospectiveTests/TestMain.cpp | 268 -- .../{XmlTests.cpp => Xml.tests.cpp} | 0 projects/SelfTest/TestMain.cpp | 33 + .../{ApproxTests.cpp => Approx.tests.cpp} | 0 .../{BDDTests.cpp => BDD.tests.cpp} | 0 .../{ClassTests.cpp => Class.tests.cpp} | 0 ...ilationTests.cpp => Compilation.tests.cpp} | 0 ...ConditionTests.cpp => Condition.tests.cpp} | 0 ...itionTests.cpp => Decomposition.tests.cpp} | 0 ...numToString.cpp => EnumToString.tests.cpp} | 0 ...ExceptionTests.cpp => Exception.tests.cpp} | 0 .../{MatchersTests.cpp => Matchers.tests.cpp} | 0 .../{MessageTests.cpp => Message.tests.cpp} | 0 .../{MiscTests.cpp => Misc.tests.cpp} | 10 + ...ingChrono.cpp => ToStringChrono.tests.cpp} | 0 ...ralTests.cpp => ToStringGeneral.tests.cpp} | 0 ...oStringPair.cpp => ToStringPair.tests.cpp} | 0 ...tringTuple.cpp => ToStringTuple.tests.cpp} | 0 ...ingVector.cpp => ToStringVector.tests.cpp} | 0 ...tringWhich.cpp => ToStringWhich.tests.cpp} | 0 .../{TrickyTests.cpp => Tricky.tests.cpp} | 0 ...crosTests.cpp => VariadicMacros.tests.cpp} | 0 32 files changed, 3323 insertions(+), 3322 deletions(-) rename projects/SelfTest/IntrospectiveTests/{CmdLineTests.cpp => CmdLine.tests.cpp} (65%) rename projects/SelfTest/IntrospectiveTests/{PartTrackerTests.cpp => PartTracker.tests.cpp} (100%) rename projects/SelfTest/IntrospectiveTests/{StringRef.tests.cpp => String.tests.cpp} (82%) rename projects/SelfTest/IntrospectiveTests/{TagAliasTests.cpp => TagAlias.tests.cpp} (100%) delete mode 100644 projects/SelfTest/IntrospectiveTests/TestMain.cpp rename projects/SelfTest/IntrospectiveTests/{XmlTests.cpp => Xml.tests.cpp} (100%) create mode 100644 projects/SelfTest/TestMain.cpp rename projects/SelfTest/UsageTests/{ApproxTests.cpp => Approx.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{BDDTests.cpp => BDD.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{ClassTests.cpp => Class.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{CompilationTests.cpp => Compilation.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{ConditionTests.cpp => Condition.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{DecompositionTests.cpp => Decomposition.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{EnumToString.cpp => EnumToString.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{ExceptionTests.cpp => Exception.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{MatchersTests.cpp => Matchers.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{MessageTests.cpp => Message.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{MiscTests.cpp => Misc.tests.cpp} (97%) rename projects/SelfTest/UsageTests/{ToStringChrono.cpp => ToStringChrono.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{ToStringGeneralTests.cpp => ToStringGeneral.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{ToStringPair.cpp => ToStringPair.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{ToStringTuple.cpp => ToStringTuple.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{ToStringVector.cpp => ToStringVector.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{ToStringWhich.cpp => ToStringWhich.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{TrickyTests.cpp => Tricky.tests.cpp} (100%) rename projects/SelfTest/UsageTests/{VariadicMacrosTests.cpp => VariadicMacros.tests.cpp} (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index a27b0aab..de1972a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -47,32 +47,32 @@ endfunction() # define the sources of the self test # Please keep these ordered alphabetically set(TEST_SOURCES - ${SELF_TEST_DIR}/UsageTests/ApproxTests.cpp - ${SELF_TEST_DIR}/UsageTests/BDDTests.cpp + ${SELF_TEST_DIR}/TestMain.cpp + ${SELF_TEST_DIR}/IntrospectiveTests/CmdLine.tests.cpp + ${SELF_TEST_DIR}/IntrospectiveTests/PartTracker.tests.cpp + ${SELF_TEST_DIR}/IntrospectiveTests/TagAlias.tests.cpp + ${SELF_TEST_DIR}/IntrospectiveTests/String.tests.cpp + ${SELF_TEST_DIR}/IntrospectiveTests/Xml.tests.cpp + ${SELF_TEST_DIR}/UsageTests/Approx.tests.cpp + ${SELF_TEST_DIR}/UsageTests/BDD.tests.cpp ${SELF_TEST_DIR}/UsageTests/Benchmark.tests.cpp - ${SELF_TEST_DIR}/UsageTests/ClassTests.cpp - ${SELF_TEST_DIR}/IntrospectiveTests/CmdLineTests.cpp - ${SELF_TEST_DIR}/UsageTests/CompilationTests.cpp - ${SELF_TEST_DIR}/UsageTests/ConditionTests.cpp - ${SELF_TEST_DIR}/UsageTests/DecompositionTests.cpp - ${SELF_TEST_DIR}/UsageTests/EnumToString.cpp - ${SELF_TEST_DIR}/UsageTests/ExceptionTests.cpp - ${SELF_TEST_DIR}/UsageTests/MessageTests.cpp - ${SELF_TEST_DIR}/UsageTests/MiscTests.cpp - ${SELF_TEST_DIR}/IntrospectiveTests/PartTrackerTests.cpp - ${SELF_TEST_DIR}/IntrospectiveTests/TagAliasTests.cpp - ${SELF_TEST_DIR}/IntrospectiveTests/TestMain.cpp - ${SELF_TEST_DIR}/UsageTests/ToStringChrono.cpp - ${SELF_TEST_DIR}/UsageTests/ToStringGeneralTests.cpp - ${SELF_TEST_DIR}/UsageTests/ToStringPair.cpp - ${SELF_TEST_DIR}/UsageTests/ToStringTuple.cpp - ${SELF_TEST_DIR}/UsageTests/ToStringVector.cpp - ${SELF_TEST_DIR}/UsageTests/ToStringWhich.cpp - ${SELF_TEST_DIR}/UsageTests/TrickyTests.cpp - ${SELF_TEST_DIR}/UsageTests/VariadicMacrosTests.cpp - ${SELF_TEST_DIR}/UsageTests/MatchersTests.cpp - ${SELF_TEST_DIR}/IntrospectiveTests/StringRef.tests.cpp - ${SELF_TEST_DIR}/IntrospectiveTests/XmlTests.cpp + ${SELF_TEST_DIR}/UsageTests/Class.tests.cpp + ${SELF_TEST_DIR}/UsageTests/Compilation.tests.cpp + ${SELF_TEST_DIR}/UsageTests/Condition.tests.cpp + ${SELF_TEST_DIR}/UsageTests/Decomposition.tests.cpp + ${SELF_TEST_DIR}/UsageTests/EnumToString.tests.cpp + ${SELF_TEST_DIR}/UsageTests/Exception.tests.cpp + ${SELF_TEST_DIR}/UsageTests/Message.tests.cpp + ${SELF_TEST_DIR}/UsageTests/Misc.tests.cpp + ${SELF_TEST_DIR}/UsageTests/ToStringChrono.tests.cpp + ${SELF_TEST_DIR}/UsageTests/ToStringGeneral.tests.cpp + ${SELF_TEST_DIR}/UsageTests/ToStringPair.tests.cpp + ${SELF_TEST_DIR}/UsageTests/ToStringTuple.tests.cpp + ${SELF_TEST_DIR}/UsageTests/ToStringVector.tests.cpp + ${SELF_TEST_DIR}/UsageTests/ToStringWhich.tests.cpp + ${SELF_TEST_DIR}/UsageTests/Tricky.tests.cpp + ${SELF_TEST_DIR}/UsageTests/VariadicMacros.tests.cpp + ${SELF_TEST_DIR}/UsageTests/Matchers.tests.cpp ) CheckFileList(TEST_SOURCES ${SELF_TEST_DIR}) 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: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: 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: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: 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: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( f() == 0 ) with expansion: 1 == 0 @@ -42,50 +42,50 @@ with expansion: ------------------------------------------------------------------------------- 'Not' checks that should fail ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( false != false ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( true != true ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( !true ) with expansion: false -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK_FALSE( true ) with expansion: !true -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( !trueValue ) with expansion: false -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK_FALSE( trueValue ) with expansion: !true -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( !(1 == 1) ) with expansion: false -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK_FALSE( 1 == 1 ) ------------------------------------------------------------------------------- A METHOD_AS_TEST_CASE based test run that fails ------------------------------------------------------------------------------- -ClassTests.cpp: +Class.tests.cpp: ............................................................................... -ClassTests.cpp:: FAILED: +Class.tests.cpp:: 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: +Class.tests.cpp: ............................................................................... -ClassTests.cpp:: FAILED: +Class.tests.cpp:: 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: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: explicitly with message: to infinity and beyond ------------------------------------------------------------------------------- A failing expression with a non streamable type is still captured ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: FAILED: +Tricky.tests.cpp:: FAILED: CHECK( &o1 == &o2 ) with expansion: 0x == 0x -TrickyTests.cpp:: FAILED: +Tricky.tests.cpp:: FAILED: CHECK( o1 == o2 ) with expansion: {?} == {?} @@ -130,10 +130,10 @@ with expansion: ------------------------------------------------------------------------------- An unchecked exception reports the line of the last assertion ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: 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: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: 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:: FAILED: +Matchers.tests.cpp:: 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: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: 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: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: 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: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: due to unexpected exception with message: custom std exception ------------------------------------------------------------------------------- EndsWith string matcher ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) ) with expansion: "this string contains 'abc' as a substring" ends with: "Substring" -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: 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: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven == 6 ) with expansion: 7 == 6 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven == 8 ) with expansion: 7 == 8 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven == 0 ) with expansion: 7 == 0 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one == Approx( 9.11f ) ) with expansion: 9.1f == Approx( 9.1099996567 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one == Approx( 9.0f ) ) with expansion: 9.1f == Approx( 9.0 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one == Approx( 1 ) ) with expansion: 9.1f == Approx( 1.0 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one == Approx( 0 ) ) with expansion: 9.1f == Approx( 0.0 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.double_pi == Approx( 3.1415 ) ) with expansion: 3.1415926535 == Approx( 3.1415 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello == "goodbye" ) with expansion: "hello" == "goodbye" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello == "hell" ) with expansion: "hello" == "hell" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello == "hello1" ) with expansion: "hello" == "hello1" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello.size() == 6 ) with expansion: 5 == 6 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( x == Approx( 1.301 ) ) with expansion: 1.3 == Approx( 1.301 ) @@ -278,16 +278,16 @@ with expansion: ------------------------------------------------------------------------------- Equals string matcher ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: 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:: FAILED: +Matchers.tests.cpp:: 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: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } ) because no exception was thrown where one was expected: -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: 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: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{ 1 } ) due to unexpected exception with message: Unknown exception -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: 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: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THROWS_MATCHES( throws(3), SpecialException, ExceptionMatcher{ 1 } ) with expansion: {?} special exception has value of 1 -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: 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: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: CHECK_THROWS_AS( thisThrows(), std::string ) due to unexpected exception with message: expected exception -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error ) because no exception was thrown where one was expected: -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: 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: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: explicitly with message: This is a failure ------------------------------------------------------------------------------- FAIL does not require an argument ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: ------------------------------------------------------------------------------- FAIL_CHECK does not abort the test ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: explicitly with message: This is a failure -MessageTests.cpp:: +Message.tests.cpp:: warning: This message appears in the output ------------------------------------------------------------------------------- INFO and WARN do not abort tests ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: +Message.tests.cpp:: warning: this is a warning ------------------------------------------------------------------------------- INFO gets logged on failure ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: 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: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: 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:: FAILED: +Message.tests.cpp:: FAILED: CHECK( a == 0 ) with expansion: 2 == 0 @@ -444,10 +444,10 @@ with messages: ------------------------------------------------------------------------------- INFO is reset for each loop ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: REQUIRE( i < 10 ) with expansion: 10 < 10 @@ -458,30 +458,30 @@ with messages: ------------------------------------------------------------------------------- Inequality checks that should fail ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven != 7 ) with expansion: 7 != 7 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one != Approx( 9.1f ) ) with expansion: 9.1f != Approx( 9.1000003815 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.double_pi != Approx( 3.1415926535 ) ) with expansion: 3.1415926535 != Approx( 3.1415926535 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello != "hello" ) with expansion: "hello" != "hello" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: 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: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: 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: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: 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: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: REQUIRE_THROWS_WITH( thisThrows(), "should fail" ) with expansion: "expected exception" equals: "should fail" @@ -523,120 +523,120 @@ with expansion: ------------------------------------------------------------------------------- Nice descriptive name ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: warning: This one ran ------------------------------------------------------------------------------- Non-std exceptions can be translated ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: due to unexpected exception with message: custom exception ------------------------------------------------------------------------------- Ordering comparison checks that should fail ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven > 7 ) with expansion: 7 > 7 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven < 7 ) with expansion: 7 < 7 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven > 8 ) with expansion: 7 > 8 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven < 6 ) with expansion: 7 < 6 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven < 0 ) with expansion: 7 < 0 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven < -1 ) with expansion: 7 < -1 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven >= 8 ) with expansion: 7 >= 8 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven <= 6 ) with expansion: 7 <= 6 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one < 9 ) with expansion: 9.1f < 9 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one > 10 ) with expansion: 9.1f > 10 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one > 9.2 ) with expansion: 9.1f > 9.2 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello > "hello" ) with expansion: "hello" > "hello" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello < "hello" ) with expansion: "hello" < "hello" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello > "hellp" ) with expansion: "hello" > "hellp" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello > "z" ) with expansion: "hello" > "z" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello < "hellm" ) with expansion: "hello" < "hellm" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello < "a" ) with expansion: "hello" < "a" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello >= "z" ) with expansion: "hello" >= "z" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello <= "a" ) with expansion: "hello" <= "a" @@ -645,10 +645,10 @@ with expansion: Output from all sections is reported one ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: explicitly with message: Message from section one @@ -656,20 +656,20 @@ explicitly with message: Output from all sections is reported two ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: explicitly with message: Message from section two ------------------------------------------------------------------------------- Reconstruction should be based on stringification: #914 ------------------------------------------------------------------------------- -DecompositionTests.cpp: +Decomposition.tests.cpp: ............................................................................... -DecompositionTests.cpp:: FAILED: +Decomposition.tests.cpp:: FAILED: CHECK( truthy(false) ) with expansion: Hey, its truthy! @@ -677,22 +677,22 @@ with expansion: ------------------------------------------------------------------------------- Regex string matcher ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), Matches("this STRING contains 'abc' as a substring") ) with expansion: "this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), Matches("contains 'abc' as a substring") ) with expansion: "this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), Matches("this string contains 'abc' as a") ) with expansion: "this string contains 'abc' as a substring" matches "this string contains @@ -705,15 +705,15 @@ Message from section two ------------------------------------------------------------------------------- StartsWith string matcher ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) ) with expansion: "this string contains 'abc' as a substring" starts with: "This String" -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) ) with expansion: "this string contains 'abc' as a substring" starts with: "string" (case @@ -722,10 +722,10 @@ with expansion: ------------------------------------------------------------------------------- Tabs and newlines show in output ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( s1 == s2 ) with expansion: "if ($b == 10) { @@ -740,10 +740,10 @@ with expansion: ------------------------------------------------------------------------------- Unexpected exceptions can be translated ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: due to unexpected exception with message: 3.14 @@ -751,15 +751,15 @@ due to unexpected exception with message: Vector matchers that fail Contains (element) ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( v, VectorContains( -1 ) ) with expansion: { 1, 2, 3 } Contains: -1 -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( empty, VectorContains( 1 ) ) with expansion: { } Contains: 1 @@ -768,15 +768,15 @@ with expansion: Vector matchers that fail Contains (vector) ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( empty, Contains( v) ) with expansion: { } Contains: { 1, 2, 3 } -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( v, Contains( v2 ) ) with expansion: { 1, 2, 3 } Contains: { 1, 2, 4 } @@ -785,25 +785,25 @@ with expansion: Vector matchers that fail Equals ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( v, Equals( v2 ) ) with expansion: { 1, 2, 3 } Equals: { 1, 2 } -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( v2, Equals( v ) ) with expansion: { 1, 2 } Equals: { 1, 2, 3 } -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( empty, Equals( v ) ) with expansion: { } Equals: { 1, 2, 3 } -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( v, Equals( empty ) ) with expansion: { 1, 2, 3 } Equals: { } @@ -811,20 +811,20 @@ with expansion: ------------------------------------------------------------------------------- When unchecked exceptions are thrown directly they are always failures ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: due to unexpected exception with message: unexpected exception ------------------------------------------------------------------------------- When unchecked exceptions are thrown during a CHECK the test should continue ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: CHECK( thisThrows() == 0 ) due to unexpected exception with message: expected exception @@ -833,10 +833,10 @@ due to unexpected exception with message: When unchecked exceptions are thrown during a REQUIRE the test should abort fail ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: REQUIRE( thisThrows() == 0 ) due to unexpected exception with message: expected exception @@ -844,10 +844,10 @@ due to unexpected exception with message: ------------------------------------------------------------------------------- When unchecked exceptions are thrown from functions they are always failures ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: CHECK( thisThrows() == 0 ) due to unexpected exception with message: expected exception @@ -856,20 +856,20 @@ due to unexpected exception with message: When unchecked exceptions are thrown from sections they are always failures section name ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: due to unexpected exception with message: unexpected exception ------------------------------------------------------------------------------- Where the LHS is not a simple value ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: warning: Uncomment the code in this test to check that it gives a sensible compiler error @@ -877,10 +877,10 @@ warning: ------------------------------------------------------------------------------- Where there is more to the expression after the RHS ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: warning: Uncomment the code in this test to check that it gives a sensible compiler error @@ -888,15 +888,15 @@ warning: ------------------------------------------------------------------------------- checkedElse, failing ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECKED_ELSE( flag ) with expansion: false -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: REQUIRE( testCheckedElse( false ) ) with expansion: false @@ -904,15 +904,15 @@ with expansion: ------------------------------------------------------------------------------- checkedIf, failing ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECKED_IF( flag ) with expansion: false -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: REQUIRE( testCheckedIf( false ) ) with expansion: false @@ -921,10 +921,10 @@ loose text artifact ------------------------------------------------------------------------------- just failure ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: explicitly with message: Previous info should not be seen @@ -932,10 +932,10 @@ explicitly with message: looped SECTION tests s1 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( b > a ) with expansion: 0 > 1 @@ -943,45 +943,45 @@ with expansion: ------------------------------------------------------------------------------- looped tests ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: 1 == 0 with message: Testing if fib[0] (1) is even -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: 1 == 0 with message: Testing if fib[1] (1) is even -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: 1 == 0 with message: Testing if fib[3] (3) is even -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: 1 == 0 with message: Testing if fib[4] (5) is even -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: 1 == 0 with message: Testing if fib[6] (13) is even -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: 1 == 0 @@ -993,10 +993,10 @@ more nested SECTION tests s1 s2 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: REQUIRE( a == b ) with expansion: 1 == 2 @@ -1004,10 +1004,10 @@ with expansion: ------------------------------------------------------------------------------- send a single char to INFO ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: REQUIRE( false ) with message: 3 @@ -1015,10 +1015,10 @@ with message: ------------------------------------------------------------------------------- sends information to INFO ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: REQUIRE( false ) with messages: hi @@ -1027,10 +1027,10 @@ with messages: ------------------------------------------------------------------------------- string literals of different sizes can be compared ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: FAILED: +Tricky.tests.cpp:: FAILED: REQUIRE( std::string( "first" ) == "second" ) with expansion: "first" == "second" @@ -1038,15 +1038,15 @@ with expansion: ------------------------------------------------------------------------------- toString(enum class) ------------------------------------------------------------------------------- -EnumToString.cpp: +EnumToString.tests.cpp: ............................................................................... -EnumToString.cpp:: FAILED: +EnumToString.tests.cpp:: FAILED: CHECK( ::Catch::Detail::stringify(e0) == "0" ) with expansion: "{?}" == "0" -EnumToString.cpp:: FAILED: +EnumToString.tests.cpp:: FAILED: CHECK( ::Catch::Detail::stringify(e1) == "1" ) with expansion: "{?}" == "1" diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt index 845ac8bd..fa7d62c9 100644 --- a/projects/SelfTest/Baselines/console.sw.approved.txt +++ b/projects/SelfTest/Baselines/console.sw.approved.txt @@ -6,10 +6,10 @@ Run with -? for options ------------------------------------------------------------------------------- # A test name that starts with a # ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: yay @@ -18,16 +18,16 @@ with message: #1005: Comparing pointer to int and long (NULL can be either on various systems) ------------------------------------------------------------------------------- -DecompositionTests.cpp: +Decomposition.tests.cpp: ............................................................................... -DecompositionTests.cpp:: +Decomposition.tests.cpp:: PASSED: REQUIRE( fptr == 0 ) with expansion: 0 == 0 -DecompositionTests.cpp:: +Decomposition.tests.cpp:: PASSED: REQUIRE( fptr == 0l ) with expansion: @@ -36,16 +36,16 @@ with expansion: ------------------------------------------------------------------------------- #1027 ------------------------------------------------------------------------------- -CompilationTests.cpp: +Compilation.tests.cpp: ............................................................................... -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE( y.v == 0 ) with expansion: 0 == 0 -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE( 0 == y.v ) with expansion: @@ -55,10 +55,10 @@ with expansion: #748 - captures with unexpected exceptions outside assertions ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: due to unexpected exception with messages: answer := 42 expected exception @@ -67,10 +67,10 @@ due to unexpected exception with messages: #748 - captures with unexpected exceptions inside REQUIRE_NOTHROW ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: REQUIRE_NOTHROW( thisThrows() ) due to unexpected exception with messages: answer := 42 @@ -80,10 +80,10 @@ due to unexpected exception with messages: #748 - captures with unexpected exceptions inside REQUIRE_THROWS ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: REQUIRE_THROWS( thisThrows() ) with message: @@ -92,10 +92,10 @@ with message: ------------------------------------------------------------------------------- #809 ------------------------------------------------------------------------------- -CompilationTests.cpp: +Compilation.tests.cpp: ............................................................................... -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE( 42 == f ) with expansion: @@ -104,40 +104,40 @@ with expansion: ------------------------------------------------------------------------------- #833 ------------------------------------------------------------------------------- -CompilationTests.cpp: +Compilation.tests.cpp: ............................................................................... -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE( a == t ) with expansion: 3 == 3 -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: CHECK( a == t ) with expansion: 3 == 3 -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE_THROWS( throws_int(true) ) -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: CHECK_THROWS_AS( throws_int(true), int ) -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE_NOTHROW( throws_int(false) ) -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE_THAT( "aaa", Catch::EndsWith("aaa") ) with expansion: "aaa" ends with: "aaa" -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE( templated_tests(3) ) with expansion: @@ -146,15 +146,15 @@ with expansion: ------------------------------------------------------------------------------- #835 -- errno should not be touched by Catch ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( f() == 0 ) with expansion: 1 == 0 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( errno == 1 ) with expansion: @@ -163,10 +163,10 @@ with expansion: ------------------------------------------------------------------------------- #872 ------------------------------------------------------------------------------- -CompilationTests.cpp: +Compilation.tests.cpp: ............................................................................... -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE( x == 4 ) with expansion: @@ -178,10 +178,10 @@ with message: #961 -- Dynamically created sections should all be reported Looped section 0 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: Everything is OK @@ -190,10 +190,10 @@ with message: #961 -- Dynamically created sections should all be reported Looped section 1 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: Everything is OK @@ -202,10 +202,10 @@ with message: #961 -- Dynamically created sections should all be reported Looped section 2 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: Everything is OK @@ -214,10 +214,10 @@ with message: #961 -- Dynamically created sections should all be reported Looped section 3 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: Everything is OK @@ -226,10 +226,10 @@ with message: #961 -- Dynamically created sections should all be reported Looped section 4 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: Everything is OK @@ -237,88 +237,88 @@ with message: ------------------------------------------------------------------------------- 'Not' checks that should fail ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( false != false ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( true != true ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( !true ) with expansion: false -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK_FALSE( true ) with expansion: !true -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( !trueValue ) with expansion: false -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK_FALSE( trueValue ) with expansion: !true -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( !(1 == 1) ) with expansion: false -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK_FALSE( 1 == 1 ) ------------------------------------------------------------------------------- 'Not' checks that should succeed ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( false == false ) -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( true == true ) -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( !false ) with expansion: true -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE_FALSE( false ) with expansion: !false -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( !falseValue ) with expansion: true -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE_FALSE( falseValue ) with expansion: !false -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( !(1 == 2) ) with expansion: true -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE_FALSE( 1 == 2 ) @@ -326,16 +326,16 @@ PASSED: (unimplemented) static bools can be evaluated compare to true ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( is_true::value == true ) with expansion: true == true -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( true == is_true::value ) with expansion: @@ -345,16 +345,16 @@ with expansion: (unimplemented) static bools can be evaluated compare to false ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( is_true::value == false ) with expansion: false == false -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( false == is_true::value ) with expansion: @@ -364,10 +364,10 @@ with expansion: (unimplemented) static bools can be evaluated negation ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( !is_true::value ) with expansion: @@ -377,10 +377,10 @@ with expansion: (unimplemented) static bools can be evaluated double negation ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( !!is_true::value ) with expansion: @@ -390,16 +390,16 @@ with expansion: (unimplemented) static bools can be evaluated direct ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( is_true::value ) with expansion: true -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE_FALSE( is_true::value ) with expansion: @@ -408,10 +408,10 @@ with expansion: ------------------------------------------------------------------------------- A METHOD_AS_TEST_CASE based test run that fails ------------------------------------------------------------------------------- -ClassTests.cpp: +Class.tests.cpp: ............................................................................... -ClassTests.cpp:: FAILED: +Class.tests.cpp:: FAILED: REQUIRE( s == "world" ) with expansion: "hello" == "world" @@ -419,10 +419,10 @@ with expansion: ------------------------------------------------------------------------------- A METHOD_AS_TEST_CASE based test run that succeeds ------------------------------------------------------------------------------- -ClassTests.cpp: +Class.tests.cpp: ............................................................................... -ClassTests.cpp:: +Class.tests.cpp:: PASSED: REQUIRE( s == "hello" ) with expansion: @@ -431,10 +431,10 @@ with expansion: ------------------------------------------------------------------------------- A TEST_CASE_METHOD based test run that fails ------------------------------------------------------------------------------- -ClassTests.cpp: +Class.tests.cpp: ............................................................................... -ClassTests.cpp:: FAILED: +Class.tests.cpp:: FAILED: REQUIRE( m_a == 2 ) with expansion: 1 == 2 @@ -442,10 +442,10 @@ with expansion: ------------------------------------------------------------------------------- A TEST_CASE_METHOD based test run that succeeds ------------------------------------------------------------------------------- -ClassTests.cpp: +Class.tests.cpp: ............................................................................... -ClassTests.cpp:: +Class.tests.cpp:: PASSED: REQUIRE( m_a == 1 ) with expansion: @@ -456,10 +456,10 @@ A couple of nested sections followed by a failure Outer Inner ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: that's not flying - that's failing in style @@ -467,25 +467,25 @@ with message: ------------------------------------------------------------------------------- A couple of nested sections followed by a failure ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: explicitly with message: to infinity and beyond ------------------------------------------------------------------------------- A failing expression with a non streamable type is still captured ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: FAILED: +Tricky.tests.cpp:: FAILED: CHECK( &o1 == &o2 ) with expansion: 0x == 0x -TrickyTests.cpp:: FAILED: +Tricky.tests.cpp:: FAILED: CHECK( o1 == o2 ) with expansion: {?} == {?} @@ -493,40 +493,40 @@ with expansion: ------------------------------------------------------------------------------- Absolute margin ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 104.0 != Approx(100.0) ) with expansion: 104.0 != Approx( 100.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 104.0 == Approx(100.0).margin(5) ) with expansion: 104.0 == Approx( 100.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 104.0 == Approx(100.0).margin(4) ) with expansion: 104.0 == Approx( 100.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 104.0 != Approx(100.0).margin(3) ) with expansion: 104.0 != Approx( 100.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 100.3 != Approx(100.0) ) with expansion: 100.3 != Approx( 100.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 100.3 == Approx(100.0).margin(0.5) ) with expansion: @@ -535,16 +535,16 @@ with expansion: ------------------------------------------------------------------------------- An expression with side-effects should only be evaluated once ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( i++ == 7 ) with expansion: 7 == 7 -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( i++ == 8 ) with expansion: @@ -553,14 +553,14 @@ with expansion: ------------------------------------------------------------------------------- An unchecked exception reports the line of the last assertion ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: CHECK( 1 == 1 ) -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: {Unknown expression after the reported line} due to unexpected exception with message: unexpected exception @@ -568,10 +568,10 @@ due to unexpected exception with message: ------------------------------------------------------------------------------- Anonymous test case 1 ------------------------------------------------------------------------------- -VariadicMacrosTests.cpp: +VariadicMacros.tests.cpp: ............................................................................... -VariadicMacrosTests.cpp:: +VariadicMacros.tests.cpp:: PASSED: with message: anonymous test case @@ -579,68 +579,68 @@ with message: ------------------------------------------------------------------------------- Approx setters validate their arguments ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE_NOTHROW( Approx(0).margin(0) ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE_NOTHROW( Approx(0).margin(1234656) ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE_THROWS_AS( Approx(0).margin(-2), std::domain_error ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE_NOTHROW( Approx(0).epsilon(0) ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE_NOTHROW( Approx(0).epsilon(1) ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE_THROWS_AS( Approx(0).epsilon(-0.001), std::domain_error ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE_THROWS_AS( Approx(0).epsilon(1.0001), std::domain_error ) ------------------------------------------------------------------------------- Approx with exactly-representable margin ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: CHECK( 0.25f == Approx(0.0f).margin(0.25f) ) with expansion: 0.25f == Approx( 0.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: CHECK( 0.0f == Approx(0.25f).margin(0.25f) ) with expansion: 0.0f == Approx( 0.25 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: CHECK( 0.5f == Approx(0.25f).margin(0.25f) ) with expansion: 0.5f == Approx( 0.25 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: CHECK( 245.0f == Approx(245.25f).margin(0.25f) ) with expansion: 245.0f == Approx( 245.25 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: CHECK( 245.5f == Approx(245.25f).margin(0.25f) ) with expansion: @@ -649,16 +649,16 @@ with expansion: ------------------------------------------------------------------------------- Approximate PI ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) ) with expansion: 3.1428571429 == Approx( 3.141 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) ) with expansion: @@ -667,16 +667,16 @@ with expansion: ------------------------------------------------------------------------------- Approximate comparisons with different epsilons ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d != Approx( 1.231 ) ) with expansion: 1.23 != Approx( 1.231 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) ) with expansion: @@ -685,16 +685,16 @@ with expansion: ------------------------------------------------------------------------------- Approximate comparisons with floats ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 1.23f == Approx( 1.23f ) ) with expansion: 1.23f == Approx( 1.2300000191 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 0.0f == Approx( 0.0f ) ) with expansion: @@ -703,16 +703,16 @@ with expansion: ------------------------------------------------------------------------------- Approximate comparisons with ints ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 1 == Approx( 1 ) ) with expansion: 1 == Approx( 1.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 0 == Approx( 0 ) ) with expansion: @@ -721,34 +721,34 @@ with expansion: ------------------------------------------------------------------------------- Approximate comparisons with mixed numeric types ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 1.0f == Approx( 1 ) ) with expansion: 1.0f == Approx( 1.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 0 == Approx( dZero) ) with expansion: 0 == Approx( 0.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 0 == Approx( dSmall ).margin( 0.001 ) ) with expansion: 0 == Approx( 0.00001 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 1.234f == Approx( dMedium ) ) with expansion: 1.234f == Approx( 1.234 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( dMedium == Approx( 1.234f ) ) with expansion: @@ -757,10 +757,10 @@ with expansion: ------------------------------------------------------------------------------- Assertions then sections ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( Catch::alwaysTrue() ) with expansion: @@ -770,10 +770,10 @@ with expansion: Assertions then sections A section ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( Catch::alwaysTrue() ) with expansion: @@ -784,10 +784,10 @@ Assertions then sections A section Another section ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( Catch::alwaysTrue() ) with expansion: @@ -796,10 +796,10 @@ with expansion: ------------------------------------------------------------------------------- Assertions then sections ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( Catch::alwaysTrue() ) with expansion: @@ -809,10 +809,10 @@ with expansion: Assertions then sections A section ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( Catch::alwaysTrue() ) with expansion: @@ -823,10 +823,10 @@ Assertions then sections A section Another other section ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( Catch::alwaysTrue() ) with expansion: @@ -835,22 +835,22 @@ with expansion: ------------------------------------------------------------------------------- Assorted miscellaneous tests ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( INFINITY == Approx(INFINITY) ) with expansion: inff == Approx( inf ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( NAN != Approx(NAN) ) with expansion: nanf != Approx( nan ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE_FALSE( NAN == Approx(NAN) ) with expansion: @@ -859,16 +859,16 @@ with expansion: ------------------------------------------------------------------------------- Bitfields can be captured (#1027) ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( y.v == 0 ) with expansion: 0 == 0 -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( 0 == y.v ) with expansion: @@ -878,10 +878,10 @@ with expansion: Capture and info messages Capture should stringify like assertions ------------------------------------------------------------------------------- -ToStringGeneralTests.cpp: +ToStringGeneral.tests.cpp: ............................................................................... -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: REQUIRE( true ) with message: @@ -891,10 +891,10 @@ with message: Capture and info messages Info should NOT stringify the way assertions do ------------------------------------------------------------------------------- -ToStringGeneralTests.cpp: +ToStringGeneral.tests.cpp: ............................................................................... -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: REQUIRE( true ) with message: @@ -904,28 +904,28 @@ with message: Character pretty printing Specifically escaped ------------------------------------------------------------------------------- -ToStringGeneralTests.cpp: +ToStringGeneral.tests.cpp: ............................................................................... -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: CHECK( tab == '\t' ) with expansion: '\t' == '\t' -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: CHECK( newline == '\n' ) with expansion: '\n' == '\n' -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: CHECK( carr_return == '\r' ) with expansion: '\r' == '\r' -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: CHECK( form_feed == '\f' ) with expansion: @@ -935,34 +935,34 @@ with expansion: Character pretty printing General chars ------------------------------------------------------------------------------- -ToStringGeneralTests.cpp: +ToStringGeneral.tests.cpp: ............................................................................... -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: CHECK( space == ' ' ) with expansion: ' ' == ' ' -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: REQUIRE( c == chars[i] ) with expansion: 'a' == 'a' -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: REQUIRE( c == chars[i] ) with expansion: 'z' == 'z' -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: REQUIRE( c == chars[i] ) with expansion: 'A' == 'A' -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: REQUIRE( c == chars[i] ) with expansion: @@ -972,34 +972,34 @@ with expansion: Character pretty printing Low ASCII ------------------------------------------------------------------------------- -ToStringGeneralTests.cpp: +ToStringGeneral.tests.cpp: ............................................................................... -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: CHECK( null_terminator == '\0' ) with expansion: 0 == 0 -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: REQUIRE( c == i ) with expansion: 2 == 2 -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: REQUIRE( c == i ) with expansion: 3 == 3 -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: REQUIRE( c == i ) with expansion: 4 == 4 -ToStringGeneralTests.cpp:: +ToStringGeneral.tests.cpp:: PASSED: REQUIRE( c == i ) with expansion: @@ -1008,66 +1008,66 @@ with expansion: ------------------------------------------------------------------------------- Commas in various macros are allowed ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE_THROWS( std::vector{constructor_throws{}, constructor_throws{}} ) -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: CHECK_THROWS( std::vector{constructor_throws{}, constructor_throws{}} ) -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE_NOTHROW( std::vector{1, 2, 3} == std::vector{1, 2, 3} ) -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: CHECK_NOTHROW( std::vector{1, 2, 3} == std::vector{1, 2, 3} ) -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( std::vector{1, 2} == std::vector{1, 2} ) with expansion: { 1, 2 } == { 1, 2 } -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: CHECK( std::vector{1, 2} == std::vector{1, 2} ) with expansion: { 1, 2 } == { 1, 2 } -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE_FALSE( std::vector{1, 2} == std::vector{1, 2, 3} ) with expansion: !({ 1, 2 } == { 1, 2, 3 }) -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: CHECK_FALSE( std::vector{1, 2} == std::vector{1, 2, 3} ) with expansion: !({ 1, 2 } == { 1, 2, 3 }) -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: CHECK_NOFAIL( std::vector{1, 2} == std::vector{1, 2} ) with expansion: { 1, 2 } == { 1, 2 } -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: CHECKED_IF( std::vector{1, 2} == std::vector{1, 2} ) with expansion: { 1, 2 } == { 1, 2 } -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( true ) -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: CHECKED_ELSE( std::vector{1, 2} == std::vector{1, 2} ) with expansion: @@ -1076,16 +1076,16 @@ with expansion: ------------------------------------------------------------------------------- Comparing function pointers ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( a ) with expansion: 0x -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( a == &foo ) with expansion: @@ -1094,76 +1094,76 @@ with expansion: ------------------------------------------------------------------------------- Comparison with explicitly convertible types ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( td == Approx(10.0) ) with expansion: StrongDoubleTypedef(10) == Approx( 10.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( Approx(10.0) == td ) with expansion: Approx( 10.0 ) == StrongDoubleTypedef(10) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( td != Approx(11.0) ) with expansion: StrongDoubleTypedef(10) != Approx( 11.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( Approx(11.0) != td ) with expansion: Approx( 11.0 ) != StrongDoubleTypedef(10) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( td <= Approx(10.0) ) with expansion: StrongDoubleTypedef(10) <= Approx( 10.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( td <= Approx(11.0) ) with expansion: StrongDoubleTypedef(10) <= Approx( 11.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( Approx(10.0) <= td ) with expansion: Approx( 10.0 ) <= StrongDoubleTypedef(10) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( Approx(9.0) <= td ) with expansion: Approx( 9.0 ) <= StrongDoubleTypedef(10) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( td >= Approx(9.0) ) with expansion: StrongDoubleTypedef(10) >= Approx( 9.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( td >= Approx(10.0) ) with expansion: StrongDoubleTypedef(10) >= Approx( 10.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( Approx(10.0) >= td ) with expansion: Approx( 10.0 ) >= StrongDoubleTypedef(10) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( Approx(11.0) >= td ) with expansion: @@ -1172,10 +1172,10 @@ with expansion: ------------------------------------------------------------------------------- Comparisons between ints where one side is computed ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: CHECK( 54 == 6*9 ) with expansion: @@ -1185,40 +1185,40 @@ with expansion: Comparisons between unsigned ints and negative signed ints match c++ standard behaviour ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: CHECK( ( -1 > 2u ) ) with expansion: true -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: CHECK( -1 > 2u ) with expansion: -1 > 2 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: CHECK( ( 2u < -1 ) ) with expansion: true -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: CHECK( 2u < -1 ) with expansion: 2 < -1 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: CHECK( ( minInt > 2u ) ) with expansion: true -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: CHECK( minInt > 2u ) with expansion: @@ -1227,82 +1227,82 @@ with expansion: ------------------------------------------------------------------------------- Comparisons with int literals don't warn when mixing signed/ unsigned ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( i == 1 ) with expansion: 1 == 1 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( ui == 2 ) with expansion: 2 == 2 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( l == 3 ) with expansion: 3 == 3 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( ul == 4 ) with expansion: 4 == 4 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( c == 5 ) with expansion: 5 == 5 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( uc == 6 ) with expansion: 6 == 6 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( 1 == i ) with expansion: 1 == 1 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( 2 == ui ) with expansion: 2 == 2 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( 3 == l ) with expansion: 3 == 3 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( 4 == ul ) with expansion: 4 == 4 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( 5 == c ) with expansion: 5 == 5 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( 6 == uc ) with expansion: 6 == 6 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( (std::numeric_limits::max)() > ul ) with expansion: @@ -1311,16 +1311,16 @@ with expansion: ------------------------------------------------------------------------------- Contains string matcher ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: 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:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), Contains( "STRING" ) ) with expansion: "this string contains 'abc' as a substring" contains: "STRING" @@ -1328,10 +1328,10 @@ with expansion: ------------------------------------------------------------------------------- Custom exceptions can be translated when testing for nothrow ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: REQUIRE_NOTHROW( throwCustom() ) due to unexpected exception with message: custom exception - not std @@ -1339,10 +1339,10 @@ due to unexpected exception with message: ------------------------------------------------------------------------------- Custom exceptions can be translated when testing for throwing as something else ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: REQUIRE_THROWS_AS( throwCustom(), std::exception ) due to unexpected exception with message: custom exception - not std @@ -1350,26 +1350,26 @@ due to unexpected exception with message: ------------------------------------------------------------------------------- Custom std-exceptions can be custom translated ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: due to unexpected exception with message: custom std exception ------------------------------------------------------------------------------- Default scale is invisible to comparison ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 101.000001 != Approx(100).epsilon(0.01) ) with expansion: 101.000001 != Approx( 100.0 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( std::pow(10, -5) != Approx(std::pow(10, -7)) ) with expansion: @@ -1378,15 +1378,15 @@ with expansion: ------------------------------------------------------------------------------- EndsWith string matcher ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), EndsWith( "Substring" ) ) with expansion: "this string contains 'abc' as a substring" ends with: "Substring" -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) ) with expansion: "this string contains 'abc' as a substring" ends with: "this" (case @@ -1395,10 +1395,10 @@ with expansion: ------------------------------------------------------------------------------- Epsilon only applies to Approx's value ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( 101.01 != Approx(100).epsilon(0.01) ) with expansion: @@ -1407,70 +1407,70 @@ with expansion: ------------------------------------------------------------------------------- Equality checks that should fail ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven == 6 ) with expansion: 7 == 6 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven == 8 ) with expansion: 7 == 8 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven == 0 ) with expansion: 7 == 0 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one == Approx( 9.11f ) ) with expansion: 9.1f == Approx( 9.1099996567 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one == Approx( 9.0f ) ) with expansion: 9.1f == Approx( 9.0 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one == Approx( 1 ) ) with expansion: 9.1f == Approx( 1.0 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one == Approx( 0 ) ) with expansion: 9.1f == Approx( 0.0 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.double_pi == Approx( 3.1415 ) ) with expansion: 3.1415926535 == Approx( 3.1415 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello == "goodbye" ) with expansion: "hello" == "goodbye" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello == "hell" ) with expansion: "hello" == "hell" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello == "hello1" ) with expansion: "hello" == "hello1" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello.size() == 6 ) with expansion: 5 == 6 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( x == Approx( 1.301 ) ) with expansion: 1.3 == Approx( 1.301 ) @@ -1478,46 +1478,46 @@ with expansion: ------------------------------------------------------------------------------- Equality checks that should succeed ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.int_seven == 7 ) with expansion: 7 == 7 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.float_nine_point_one == Approx( 9.1f ) ) with expansion: 9.1f == Approx( 9.1000003815 ) -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.double_pi == Approx( 3.1415926535 ) ) with expansion: 3.1415926535 == Approx( 3.1415926535 ) -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.str_hello == "hello" ) with expansion: "hello" == "hello" -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( "hello" == data.str_hello ) with expansion: "hello" == "hello" -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.str_hello.size() == 5 ) with expansion: 5 == 5 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( x == Approx( 1.3 ) ) with expansion: @@ -1526,17 +1526,17 @@ with expansion: ------------------------------------------------------------------------------- Equals ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: 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:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( testStringForMatching(), Equals( "this string contains 'ABC' as a substring", Catch::CaseSensitive::No ) ) with expansion: @@ -1546,16 +1546,16 @@ with expansion: ------------------------------------------------------------------------------- Equals string matcher ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: 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:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) ) with expansion: "this string contains 'abc' as a substring" equals: "something else" (case @@ -1565,14 +1565,14 @@ with expansion: Exception matchers that fail No exception ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } ) because no exception was thrown where one was expected: -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: REQUIRE_THROWS_MATCHES( doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } ) because no exception was thrown where one was expected: @@ -1580,15 +1580,15 @@ because no exception was thrown where one was expected: Exception matchers that fail Type mismatch ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{ 1 } ) due to unexpected exception with message: Unknown exception -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: REQUIRE_THROWS_MATCHES( throwsAsInt(1), SpecialException, ExceptionMatcher{ 1 } ) due to unexpected exception with message: Unknown exception @@ -1597,15 +1597,15 @@ due to unexpected exception with message: Exception matchers that fail Contents are wrong ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THROWS_MATCHES( throws(3), SpecialException, ExceptionMatcher{ 1 } ) with expansion: {?} special exception has value of 1 -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: REQUIRE_THROWS_MATCHES( throws(4), SpecialException, ExceptionMatcher{ 1 } ) with expansion: {?} special exception has value of 1 @@ -1613,16 +1613,16 @@ with expansion: ------------------------------------------------------------------------------- Exception matchers that succeed ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THROWS_MATCHES( throws(1), SpecialException, ExceptionMatcher{ 1 } ) with expansion: {?} special exception has value of 1 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THROWS_MATCHES( throws(2), SpecialException, ExceptionMatcher{ 2 } ) with expansion: @@ -1632,10 +1632,10 @@ with expansion: Exception messages can be tested for exact match ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: REQUIRE_THROWS_WITH( thisThrows(), "expected exception" ) with expansion: @@ -1645,10 +1645,10 @@ with expansion: Exception messages can be tested for different case ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: REQUIRE_THROWS_WITH( thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) ) with expansion: @@ -1658,28 +1658,28 @@ with expansion: Exception messages can be tested for wildcarded ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: REQUIRE_THROWS_WITH( thisThrows(), StartsWith( "expected" ) ) with expansion: "expected exception" starts with: "expected" -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: REQUIRE_THROWS_WITH( thisThrows(), EndsWith( "exception" ) ) with expansion: "expected exception" ends with: "exception" -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: REQUIRE_THROWS_WITH( thisThrows(), Contains( "except" ) ) with expansion: "expected exception" contains: "except" -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: REQUIRE_THROWS_WITH( thisThrows(), Contains( "exCept", Catch::CaseSensitive::No ) ) with expansion: @@ -1688,19 +1688,19 @@ with expansion: ------------------------------------------------------------------------------- Expected exceptions that don't throw or unexpected exceptions fail the test ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: CHECK_THROWS_AS( thisThrows(), std::string ) due to unexpected exception with message: expected exception -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: CHECK_THROWS_AS( thisDoesntThrow(), std::domain_error ) because no exception was thrown where one was expected: -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: CHECK_NOTHROW( thisThrows() ) due to unexpected exception with message: expected exception @@ -1708,66 +1708,66 @@ due to unexpected exception with message: ------------------------------------------------------------------------------- FAIL aborts the test ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: explicitly with message: This is a failure ------------------------------------------------------------------------------- FAIL does not require an argument ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: ------------------------------------------------------------------------------- FAIL_CHECK does not abort the test ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: explicitly with message: This is a failure -MessageTests.cpp:: +Message.tests.cpp:: warning: This message appears in the output ------------------------------------------------------------------------------- Factorials are computed ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( Factorial(0) == 1 ) with expansion: 1 == 1 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( Factorial(1) == 1 ) with expansion: 1 == 1 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( Factorial(2) == 2 ) with expansion: 2 == 2 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( Factorial(3) == 6 ) with expansion: 6 == 6 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( Factorial(10) == 3628800 ) with expansion: @@ -1777,34 +1777,34 @@ with expansion: Floating point matchers: double Margin ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 1., WithinAbs(1., 0) ) with expansion: 1.0 is within 0.0 of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 0., WithinAbs(1., 1) ) with expansion: 0.0 is within 1.0 of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 0., !WithinAbs(1., 0.99) ) with expansion: 0.0 not is within 0.99 of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 0., !WithinAbs(1., 0.99) ) with expansion: 0.0 not is within 0.99 of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( NAN, !WithinAbs(NAN, 0) ) with expansion: @@ -1814,46 +1814,46 @@ with expansion: Floating point matchers: double ULPs ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 1., WithinULP(1., 0) ) with expansion: 1.0 is within 0 ULPs of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( std::nextafter(1., 2.), WithinULP(1., 1) ) with expansion: 1.0 is within 1 ULPs of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( std::nextafter(1., 0.), WithinULP(1., 1) ) with expansion: 1.0 is within 1 ULPs of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( std::nextafter(1., 2.), !WithinULP(1., 0) ) with expansion: 1.0 not is within 0 ULPs of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 1., WithinULP(1., 0) ) with expansion: 1.0 is within 0 ULPs of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( -0., WithinULP(0., 0) ) with expansion: -0.0 is within 0 ULPs of 0.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( NAN, !WithinULP(NAN, 123) ) with expansion: @@ -1863,22 +1863,22 @@ with expansion: Floating point matchers: double Composed ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 1., WithinAbs(1., 0.5) || WithinULP(2., 1) ) with expansion: 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0 ) -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 1., WithinAbs(2., 0.5) || WithinULP(1., 0) ) with expansion: 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0 ) -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( NAN, !(WithinAbs(NAN, 100) || WithinULP(NAN, 123)) ) with expansion: @@ -1888,40 +1888,40 @@ with expansion: Floating point matchers: float Margin ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 1.f, WithinAbs(1.f, 0) ) with expansion: 1.0f is within 0.0 of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 0.f, WithinAbs(1.f, 1) ) with expansion: 0.0f is within 1.0 of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 0.f, !WithinAbs(1.f, 0.99f) ) with expansion: 0.0f not is within 0.9900000095 of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 0.f, !WithinAbs(1.f, 0.99f) ) with expansion: 0.0f not is within 0.9900000095 of 1.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 0.f, WithinAbs(-0.f, 0) ) with expansion: 0.0f is within 0.0 of -0.0 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( NAN, !WithinAbs(NAN, 0) ) with expansion: @@ -1931,46 +1931,46 @@ with expansion: Floating point matchers: float ULPs ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 1.f, WithinULP(1.f, 0) ) with expansion: 1.0f is within 0 ULPs of 1.0f -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( std::nextafter(1.f, 2.f), WithinULP(1.f, 1) ) with expansion: 1.0f is within 1 ULPs of 1.0f -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( std::nextafter(1.f, 0.f), WithinULP(1.f, 1) ) with expansion: 1.0f is within 1 ULPs of 1.0f -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( std::nextafter(1.f, 2.f), !WithinULP(1.f, 0) ) with expansion: 1.0f not is within 0 ULPs of 1.0f -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 1.f, WithinULP(1.f, 0) ) with expansion: 1.0f is within 0 ULPs of 1.0f -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( -0.f, WithinULP(0.f, 0) ) with expansion: -0.0f is within 0 ULPs of 0.0f -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( NAN, !WithinULP(NAN, 123) ) with expansion: @@ -1980,22 +1980,22 @@ with expansion: Floating point matchers: float Composed ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 1.f, WithinAbs(1.f, 0.5) || WithinULP(1.f, 1) ) with expansion: 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.0f ) -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( 1.f, WithinAbs(2.f, 0.5) || WithinULP(1.f, 0) ) with expansion: 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0f ) -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( NAN, !(WithinAbs(NAN, 100) || WithinULP(NAN, 123)) ) with expansion: @@ -2004,28 +2004,28 @@ with expansion: ------------------------------------------------------------------------------- Greater-than inequalities with different epsilons ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d >= Approx( 1.22 ) ) with expansion: 1.23 >= Approx( 1.22 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d >= Approx( 1.23 ) ) with expansion: 1.23 >= Approx( 1.23 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE_FALSE( d >= Approx( 1.24 ) ) with expansion: !(1.23 >= Approx( 1.24 )) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d >= Approx( 1.24 ).epsilon(0.1) ) with expansion: @@ -2034,10 +2034,10 @@ with expansion: ------------------------------------------------------------------------------- INFO and WARN do not abort tests ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: +Message.tests.cpp:: warning: this is a message this is a warning @@ -2045,10 +2045,10 @@ warning: ------------------------------------------------------------------------------- INFO gets logged on failure ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: REQUIRE( a == 1 ) with expansion: 2 == 1 @@ -2059,10 +2059,10 @@ with messages: ------------------------------------------------------------------------------- INFO gets logged on failure, even if captured before successful assertions ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: +Message.tests.cpp:: PASSED: CHECK( a == 2 ) with expansion: @@ -2070,7 +2070,7 @@ with expansion: with message: this message may be logged later -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: CHECK( a == 1 ) with expansion: 2 == 1 @@ -2078,7 +2078,7 @@ with messages: this message may be logged later this message should be logged -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: CHECK( a == 0 ) with expansion: 2 == 0 @@ -2087,7 +2087,7 @@ with messages: this message should be logged and this, but later -MessageTests.cpp:: +Message.tests.cpp:: PASSED: CHECK( a == 2 ) with expansion: @@ -2101,10 +2101,10 @@ with messages: ------------------------------------------------------------------------------- INFO is reset for each loop ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: +Message.tests.cpp:: PASSED: REQUIRE( i < 10 ) with expansion: @@ -2113,7 +2113,7 @@ with messages: current counter 0 i := 0 -MessageTests.cpp:: +Message.tests.cpp:: PASSED: REQUIRE( i < 10 ) with expansion: @@ -2122,7 +2122,7 @@ with messages: current counter 1 i := 1 -MessageTests.cpp:: +Message.tests.cpp:: PASSED: REQUIRE( i < 10 ) with expansion: @@ -2131,7 +2131,7 @@ with messages: current counter 2 i := 2 -MessageTests.cpp:: +Message.tests.cpp:: PASSED: REQUIRE( i < 10 ) with expansion: @@ -2140,7 +2140,7 @@ with messages: current counter 3 i := 3 -MessageTests.cpp:: +Message.tests.cpp:: PASSED: REQUIRE( i < 10 ) with expansion: @@ -2149,7 +2149,7 @@ with messages: current counter 4 i := 4 -MessageTests.cpp:: +Message.tests.cpp:: PASSED: REQUIRE( i < 10 ) with expansion: @@ -2158,7 +2158,7 @@ with messages: current counter 5 i := 5 -MessageTests.cpp:: +Message.tests.cpp:: PASSED: REQUIRE( i < 10 ) with expansion: @@ -2167,7 +2167,7 @@ with messages: current counter 6 i := 6 -MessageTests.cpp:: +Message.tests.cpp:: PASSED: REQUIRE( i < 10 ) with expansion: @@ -2176,7 +2176,7 @@ with messages: current counter 7 i := 7 -MessageTests.cpp:: +Message.tests.cpp:: PASSED: REQUIRE( i < 10 ) with expansion: @@ -2185,7 +2185,7 @@ with messages: current counter 8 i := 8 -MessageTests.cpp:: +Message.tests.cpp:: PASSED: REQUIRE( i < 10 ) with expansion: @@ -2194,7 +2194,7 @@ with messages: current counter 9 i := 9 -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: REQUIRE( i < 10 ) with expansion: 10 < 10 @@ -2205,30 +2205,30 @@ with messages: ------------------------------------------------------------------------------- Inequality checks that should fail ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven != 7 ) with expansion: 7 != 7 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one != Approx( 9.1f ) ) with expansion: 9.1f != Approx( 9.1000003815 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.double_pi != Approx( 3.1415926535 ) ) with expansion: 3.1415926535 != Approx( 3.1415926535 ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello != "hello" ) with expansion: "hello" != "hello" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello.size() != 5 ) with expansion: 5 != 5 @@ -2236,70 +2236,70 @@ with expansion: ------------------------------------------------------------------------------- Inequality checks that should succeed ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.int_seven != 6 ) with expansion: 7 != 6 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.int_seven != 8 ) with expansion: 7 != 8 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.float_nine_point_one != Approx( 9.11f ) ) with expansion: 9.1f != Approx( 9.1099996567 ) -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.float_nine_point_one != Approx( 9.0f ) ) with expansion: 9.1f != Approx( 9.0 ) -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.float_nine_point_one != Approx( 1 ) ) with expansion: 9.1f != Approx( 1.0 ) -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.float_nine_point_one != Approx( 0 ) ) with expansion: 9.1f != Approx( 0.0 ) -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.double_pi != Approx( 3.1415 ) ) with expansion: 3.1415926535 != Approx( 3.1415 ) -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.str_hello != "goodbye" ) with expansion: "hello" != "goodbye" -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.str_hello != "hell" ) with expansion: "hello" != "hell" -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.str_hello != "hello1" ) with expansion: "hello" != "hello1" -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.str_hello.size() != 6 ) with expansion: @@ -2308,28 +2308,28 @@ with expansion: ------------------------------------------------------------------------------- Less-than inequalities with different epsilons ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d <= Approx( 1.24 ) ) with expansion: 1.23 <= Approx( 1.24 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d <= Approx( 1.23 ) ) with expansion: 1.23 <= Approx( 1.23 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE_FALSE( d <= Approx( 1.22 ) ) with expansion: !(1.23 <= Approx( 1.22 )) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d <= Approx( 1.22 ).epsilon(0.1) ) with expansion: @@ -2338,10 +2338,10 @@ with expansion: ------------------------------------------------------------------------------- ManuallyRegistered ------------------------------------------------------------------------------- -TestMain.cpp: +Misc.tests.cpp: ............................................................................... -TestMain.cpp:: +Misc.tests.cpp:: PASSED: with message: was called @@ -2349,10 +2349,10 @@ with message: ------------------------------------------------------------------------------- Matchers can be (AllOf) composed with the && operator ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( testStringForMatching(), Contains( "string" ) && Contains( "abc" ) && Contains( "substring" ) && Contains( "contains" ) ) with expansion: @@ -2362,17 +2362,17 @@ with expansion: ------------------------------------------------------------------------------- Matchers can be (AnyOf) composed with the || operator ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( testStringForMatching(), Contains( "string" ) || Contains( "different" ) || Contains( "random" ) ) with expansion: "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" ) -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( testStringForMatching2(), Contains( "string" ) || Contains( "different" ) || Contains( "random" ) ) with expansion: @@ -2382,10 +2382,10 @@ with expansion: ------------------------------------------------------------------------------- Matchers can be composed with both && and || ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "substring" ) ) with expansion: @@ -2395,10 +2395,10 @@ with expansion: ------------------------------------------------------------------------------- Matchers can be composed with both && and || - failing ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ) ) with expansion: "this string contains 'abc' as a substring" ( ( contains: "string" or @@ -2407,10 +2407,10 @@ with expansion: ------------------------------------------------------------------------------- Matchers can be negated (Not) with the ! operator ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( testStringForMatching(), !Contains( "different" ) ) with expansion: @@ -2419,10 +2419,10 @@ with expansion: ------------------------------------------------------------------------------- Matchers can be negated (Not) with the ! operator - failing ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), !Contains( "substring" ) ) with expansion: "this string contains 'abc' as a substring" not contains: "substring" @@ -2430,16 +2430,16 @@ with expansion: ------------------------------------------------------------------------------- Mismatching exception messages failing the test ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: REQUIRE_THROWS_WITH( thisThrows(), "expected exception" ) with expansion: "expected exception" equals: "expected exception" -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: REQUIRE_THROWS_WITH( thisThrows(), "should fail" ) with expansion: "expected exception" equals: "should fail" @@ -2447,42 +2447,42 @@ with expansion: ------------------------------------------------------------------------------- Nice descriptive name ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: warning: This one ran ------------------------------------------------------------------------------- Non-std exceptions can be translated ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: due to unexpected exception with message: custom exception ------------------------------------------------------------------------------- Objects that evaluated in boolean contexts can be checked ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: CHECK( True ) with expansion: {?} -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: CHECK( !False ) with expansion: true -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: CHECK_FALSE( False ) with expansion: @@ -2491,100 +2491,100 @@ with expansion: ------------------------------------------------------------------------------- Ordering comparison checks that should fail ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven > 7 ) with expansion: 7 > 7 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven < 7 ) with expansion: 7 < 7 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven > 8 ) with expansion: 7 > 8 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven < 6 ) with expansion: 7 < 6 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven < 0 ) with expansion: 7 < 0 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven < -1 ) with expansion: 7 < -1 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven >= 8 ) with expansion: 7 >= 8 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.int_seven <= 6 ) with expansion: 7 <= 6 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one < 9 ) with expansion: 9.1f < 9 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one > 10 ) with expansion: 9.1f > 10 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.float_nine_point_one > 9.2 ) with expansion: 9.1f > 9.2 -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello > "hello" ) with expansion: "hello" > "hello" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello < "hello" ) with expansion: "hello" < "hello" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello > "hellp" ) with expansion: "hello" > "hellp" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello > "z" ) with expansion: "hello" > "z" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello < "hellm" ) with expansion: "hello" < "hellm" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello < "a" ) with expansion: "hello" < "a" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello >= "z" ) with expansion: "hello" >= "z" -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( data.str_hello <= "a" ) with expansion: "hello" <= "a" @@ -2592,106 +2592,106 @@ with expansion: ------------------------------------------------------------------------------- Ordering comparison checks that should succeed ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.int_seven < 8 ) with expansion: 7 < 8 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.int_seven > 6 ) with expansion: 7 > 6 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.int_seven > 0 ) with expansion: 7 > 0 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.int_seven > -1 ) with expansion: 7 > -1 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.int_seven >= 7 ) with expansion: 7 >= 7 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.int_seven >= 6 ) with expansion: 7 >= 6 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.int_seven <= 7 ) with expansion: 7 <= 7 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.int_seven <= 8 ) with expansion: 7 <= 8 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.float_nine_point_one > 9 ) with expansion: 9.1f > 9 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.float_nine_point_one < 10 ) with expansion: 9.1f < 10 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.float_nine_point_one < 9.2 ) with expansion: 9.1f < 9.2 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.str_hello <= "hello" ) with expansion: "hello" <= "hello" -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.str_hello >= "hello" ) with expansion: "hello" >= "hello" -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.str_hello < "hellp" ) with expansion: "hello" < "hellp" -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.str_hello < "zebra" ) with expansion: "hello" < "zebra" -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.str_hello > "hellm" ) with expansion: "hello" > "hellm" -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( data.str_hello > "a" ) with expansion: @@ -2701,10 +2701,10 @@ with expansion: Output from all sections is reported one ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: explicitly with message: Message from section one @@ -2712,10 +2712,10 @@ explicitly with message: Output from all sections is reported two ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: explicitly with message: Message from section two @@ -2723,22 +2723,22 @@ explicitly with message: Parse test names and tags Empty test spec should have no filters ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: @@ -2748,22 +2748,22 @@ with expansion: Parse test names and tags Test spec from empty string should have no filters ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches(tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: @@ -2773,22 +2773,22 @@ with expansion: Parse test names and tags Test spec from just a comma should have no filters ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: @@ -2798,22 +2798,22 @@ with expansion: Parse test names and tags Test spec from name should have one filter ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == true ) with expansion: @@ -2823,22 +2823,22 @@ with expansion: Parse test names and tags Test spec from quoted name should have one filter ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == true ) with expansion: @@ -2848,28 +2848,28 @@ with expansion: Parse test names and tags Test spec from name should have one filter ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == false ) with expansion: @@ -2879,40 +2879,40 @@ with expansion: Parse test names and tags Wildcard at the start ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( parseTestSpec( "*a" ).matches( tcA ) == true ) with expansion: @@ -2922,40 +2922,40 @@ with expansion: Parse test names and tags Wildcard at the end ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( parseTestSpec( "a*" ).matches( tcA ) == true ) with expansion: @@ -2965,40 +2965,40 @@ with expansion: Parse test names and tags Wildcard at both ends ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( parseTestSpec( "*a*" ).matches( tcA ) == true ) with expansion: @@ -3008,22 +3008,22 @@ with expansion: Parse test names and tags Redundant wildcard at the start ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: @@ -3033,22 +3033,22 @@ with expansion: Parse test names and tags Redundant wildcard at the end ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: @@ -3058,22 +3058,22 @@ with expansion: Parse test names and tags Redundant wildcard at both ends ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: @@ -3083,34 +3083,34 @@ with expansion: Parse test names and tags Wildcard at both ends, redundant at start ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == true ) with expansion: @@ -3120,34 +3120,34 @@ with expansion: Parse test names and tags Just wildcard ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == true ) with expansion: @@ -3157,28 +3157,28 @@ with expansion: Parse test names and tags Single tag ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == false ) with expansion: @@ -3188,28 +3188,28 @@ with expansion: Parse test names and tags Single tag, two matches ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: @@ -3219,28 +3219,28 @@ with expansion: Parse test names and tags Two tags ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: @@ -3250,28 +3250,28 @@ with expansion: Parse test names and tags Two tags, spare separated ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: @@ -3281,34 +3281,34 @@ with expansion: Parse test names and tags Wildcarded name and tag ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == false ) with expansion: @@ -3318,28 +3318,28 @@ with expansion: Parse test names and tags Single tag exclusion ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: @@ -3349,28 +3349,28 @@ with expansion: Parse test names and tags One tag exclusion and one tag inclusion ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == false ) with expansion: @@ -3380,34 +3380,34 @@ with expansion: Parse test names and tags One tag exclusion and one wldcarded name inclusion ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == true ) with expansion: @@ -3417,34 +3417,34 @@ with expansion: Parse test names and tags One tag exclusion, using exclude:, and one wldcarded name inclusion ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == true ) with expansion: @@ -3454,34 +3454,34 @@ with expansion: Parse test names and tags name exclusion ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == true ) with expansion: @@ -3491,34 +3491,34 @@ with expansion: Parse test names and tags wildcarded name exclusion ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == false ) with expansion: @@ -3528,34 +3528,34 @@ with expansion: Parse test names and tags wildcarded name exclusion with tag inclusion ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == false ) with expansion: @@ -3565,34 +3565,34 @@ with expansion: Parse test names and tags wildcarded name exclusion, using exclude:, with tag inclusion ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == false ) with expansion: @@ -3602,34 +3602,34 @@ with expansion: Parse test names and tags two wildcarded names ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == false ) with expansion: @@ -3639,34 +3639,34 @@ with expansion: Parse test names and tags empty tag ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == false ) with expansion: @@ -3676,34 +3676,34 @@ with expansion: Parse test names and tags empty quoted name ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == false ) with expansion: @@ -3713,34 +3713,34 @@ with expansion: Parse test names and tags quoted string followed by tag exclusion ------------------------------------------------------------------------------- -CmdLineTests.cpp: +CmdLine.tests.cpp: ............................................................................... -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.hasFilters() == true ) with expansion: true == true -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcA ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcB ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcC ) == false ) with expansion: false == false -CmdLineTests.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( spec.matches( tcD ) == true ) with expansion: @@ -3749,10 +3749,10 @@ with expansion: ------------------------------------------------------------------------------- Parsing a std::pair ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( (std::pair( 1, 2 )) == aNicePair ) with expansion: @@ -3761,52 +3761,52 @@ with expansion: ------------------------------------------------------------------------------- Pointers can be compared to null ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( p == 0 ) with expansion: 0 == 0 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( p == pNULL ) with expansion: 0 == 0 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( p != 0 ) with expansion: 0x != 0 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( cp != 0 ) with expansion: 0x != 0 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( cpc != 0 ) with expansion: 0x != 0 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( returnsNull() == 0 ) with expansion: {null string} == 0 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( returnsConstNull() == 0 ) with expansion: {null string} == 0 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( 0 != p ) with expansion: @@ -3816,16 +3816,16 @@ with expansion: Process can be configured on command line empty args don't cause a crash ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( result ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( config.processName == "" ) with expansion: @@ -3835,40 +3835,40 @@ with expansion: Process can be configured on command line default - no arguments ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( result ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( config.processName == "test" ) with expansion: "test" == "test" -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( config.shouldDebugBreak == false ) with expansion: false == false -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( config.abortAfter == -1 ) with expansion: -1 == -1 -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( config.noThrow == false ) with expansion: false == false -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( config.reporterNames.empty() ) with expansion: @@ -3879,22 +3879,22 @@ Process can be configured on command line test lists 1 test ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( result ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( cfg.testSpec().matches(fakeTestCase("notIncluded")) == false ) with expansion: false == false -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( cfg.testSpec().matches(fakeTestCase("test1")) ) with expansion: @@ -3905,22 +3905,22 @@ Process can be configured on command line test lists Specify one test case exclusion using exclude: ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( result ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( cfg.testSpec().matches(fakeTestCase("test1")) == false ) with expansion: false == false -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( cfg.testSpec().matches(fakeTestCase("alwaysIncluded")) ) with expansion: @@ -3931,22 +3931,22 @@ Process can be configured on command line test lists Specify one test case exclusion using ~ ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( result ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( cfg.testSpec().matches(fakeTestCase("test1")) == false ) with expansion: false == false -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( cfg.testSpec().matches(fakeTestCase("alwaysIncluded")) ) with expansion: @@ -3957,16 +3957,16 @@ Process can be configured on command line reporter -r/console ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "-r", "console"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.reporterNames[0] == "console" ) with expansion: @@ -3977,16 +3977,16 @@ Process can be configured on command line reporter -r/xml ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "-r", "xml"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.reporterNames[0] == "xml" ) with expansion: @@ -3997,28 +3997,28 @@ Process can be configured on command line reporter -r xml and junit ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "-r", "xml", "-r", "junit"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.reporterNames.size() == 2 ) with expansion: 2 == 2 -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.reporterNames[0] == "xml" ) with expansion: "xml" == "xml" -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.reporterNames[1] == "junit" ) with expansion: @@ -4029,16 +4029,16 @@ Process can be configured on command line reporter --reporter/junit ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "--reporter", "junit"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.reporterNames[0] == "junit" ) with expansion: @@ -4049,16 +4049,16 @@ Process can be configured on command line debugger -b ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "-b"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.shouldDebugBreak == true ) with expansion: @@ -4069,16 +4069,16 @@ Process can be configured on command line debugger --break ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "--break"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.shouldDebugBreak ) with expansion: @@ -4089,16 +4089,16 @@ Process can be configured on command line abort -a aborts after first failure ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "-a"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.abortAfter == 1 ) with expansion: @@ -4109,16 +4109,16 @@ Process can be configured on command line abort -x 2 aborts after two failures ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "-x", "2"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.abortAfter == 2 ) with expansion: @@ -4129,16 +4129,16 @@ Process can be configured on command line abort -x must be numeric ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( !result ) with expansion: true -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE_THAT( result.errorMessage(), Contains("convert") && Contains("oops") ) with expansion: @@ -4150,16 +4150,16 @@ Process can be configured on command line nothrow -e ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "-e"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.noThrow ) with expansion: @@ -4170,16 +4170,16 @@ Process can be configured on command line nothrow --nothrow ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "--nothrow"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.noThrow ) with expansion: @@ -4190,16 +4190,16 @@ Process can be configured on command line output filename -o filename ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "-o", "filename.ext"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.outputFilename == "filename.ext" ) with expansion: @@ -4210,16 +4210,16 @@ Process can be configured on command line output filename --out ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "--out", "filename.ext"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.outputFilename == "filename.ext" ) with expansion: @@ -4230,28 +4230,28 @@ Process can be configured on command line combinations Single character flags can be combined ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "-abe"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( config.abortAfter == 1 ) with expansion: 1 == 1 -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( config.shouldDebugBreak ) with expansion: true -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( config.noThrow == true ) with expansion: @@ -4262,16 +4262,16 @@ Process can be configured on command line use-colour without option ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.useColour == UseColour::Auto ) with expansion: @@ -4282,16 +4282,16 @@ Process can be configured on command line use-colour auto ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "--use-colour", "auto"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.useColour == UseColour::Auto ) with expansion: @@ -4302,16 +4302,16 @@ Process can be configured on command line use-colour yes ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "--use-colour", "yes"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.useColour == UseColour::Yes ) with expansion: @@ -4322,16 +4322,16 @@ Process can be configured on command line use-colour no ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( cli.parse({"test", "--use-colour", "no"}) ) with expansion: {?} -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: REQUIRE( config.useColour == UseColour::No ) with expansion: @@ -4342,16 +4342,16 @@ Process can be configured on command line use-colour error ------------------------------------------------------------------------------- -TestMain.cpp: +CmdLine.tests.cpp: ............................................................................... -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK( !result ) with expansion: true -TestMain.cpp:: +CmdLine.tests.cpp:: PASSED: CHECK_THAT( result.errorMessage(), Contains( "colour mode must be one of" ) ) with expansion: @@ -4361,10 +4361,10 @@ with expansion: ------------------------------------------------------------------------------- Reconstruction should be based on stringification: #914 ------------------------------------------------------------------------------- -DecompositionTests.cpp: +Decomposition.tests.cpp: ............................................................................... -DecompositionTests.cpp:: FAILED: +Decomposition.tests.cpp:: FAILED: CHECK( truthy(false) ) with expansion: Hey, its truthy! @@ -4372,22 +4372,22 @@ with expansion: ------------------------------------------------------------------------------- Regex string matcher ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), Matches("this STRING contains 'abc' as a substring") ) with expansion: "this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), Matches("contains 'abc' as a substring") ) with expansion: "this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), Matches("this string contains 'abc' as a") ) with expansion: "this string contains 'abc' as a substring" matches "this string contains @@ -4396,10 +4396,10 @@ with expansion: ------------------------------------------------------------------------------- SUCCEED counts as a test pass ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: +Message.tests.cpp:: PASSED: with message: this is a success @@ -4407,10 +4407,10 @@ with message: ------------------------------------------------------------------------------- SUCCESS does not require an argument ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: +Message.tests.cpp:: PASSED: ------------------------------------------------------------------------------- @@ -4418,10 +4418,10 @@ Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or methods Given: No operations precede me ------------------------------------------------------------------------------- -BDDTests.cpp: +BDD.tests.cpp: ............................................................................... -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: REQUIRE( before == 0 ) with expansion: @@ -4434,10 +4434,10 @@ Scenario: BDD tests requiring Fixtures to provide commonly-accessed data or When: We get the count Then: Subsequently values are higher ------------------------------------------------------------------------------- -BDDTests.cpp: +BDD.tests.cpp: ............................................................................... -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: REQUIRE( after > before ) with expansion: @@ -4449,10 +4449,10 @@ Scenario: Do that thing with the thing When: I do this Then: it should do this ------------------------------------------------------------------------------- -BDDTests.cpp: +BDD.tests.cpp: ............................................................................... -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: REQUIRE( itDoesThis() ) with expansion: @@ -4465,10 +4465,10 @@ Scenario: Do that thing with the thing Then: it should do this And: do that ------------------------------------------------------------------------------- -BDDTests.cpp: +BDD.tests.cpp: ............................................................................... -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: REQUIRE( itDoesThat() ) with expansion: @@ -4484,10 +4484,10 @@ Scenario: This is a really long scenario name to see how the list command deals Then: The, deliberately very long and overly verbose (you see what I did there?) section names must wrap, along with an indent ------------------------------------------------------------------------------- -BDDTests.cpp: +BDD.tests.cpp: ............................................................................... -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: with message: boo! @@ -4496,10 +4496,10 @@ with message: Scenario: Vector resizing affects size and capacity Given: an empty vector ------------------------------------------------------------------------------- -BDDTests.cpp: +BDD.tests.cpp: ............................................................................... -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: REQUIRE( v.size() == 0 ) with expansion: @@ -4511,16 +4511,16 @@ Scenario: Vector resizing affects size and capacity When: it is made larger Then: the size and capacity go up ------------------------------------------------------------------------------- -BDDTests.cpp: +BDD.tests.cpp: ............................................................................... -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: REQUIRE( v.size() == 10 ) with expansion: 10 == 10 -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: REQUIRE( v.capacity() >= 10 ) with expansion: @@ -4534,16 +4534,16 @@ Scenario: Vector resizing affects size and capacity And when: it is made smaller again Then: the size goes down but the capacity stays the same ------------------------------------------------------------------------------- -BDDTests.cpp: +BDD.tests.cpp: ............................................................................... -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: REQUIRE( v.size() == 5 ) with expansion: 5 == 5 -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: REQUIRE( v.capacity() >= 10 ) with expansion: @@ -4553,10 +4553,10 @@ with expansion: Scenario: Vector resizing affects size and capacity Given: an empty vector ------------------------------------------------------------------------------- -BDDTests.cpp: +BDD.tests.cpp: ............................................................................... -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: REQUIRE( v.size() == 0 ) with expansion: @@ -4568,16 +4568,16 @@ Scenario: Vector resizing affects size and capacity When: we reserve more space Then: The capacity is increased but the size remains the same ------------------------------------------------------------------------------- -BDDTests.cpp: +BDD.tests.cpp: ............................................................................... -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: REQUIRE( v.capacity() >= 10 ) with expansion: 10 >= 10 -BDDTests.cpp:: +BDD.tests.cpp:: PASSED: REQUIRE( v.size() == 0 ) with expansion: @@ -4588,46 +4588,46 @@ A string sent directly to stderr ------------------------------------------------------------------------------- Some simple comparisons between doubles ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d == Approx( 1.23 ) ) with expansion: 1.23 == Approx( 1.23 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d != Approx( 1.22 ) ) with expansion: 1.23 != Approx( 1.22 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d != Approx( 1.24 ) ) with expansion: 1.23 != Approx( 1.24 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( Approx( d ) == 1.23 ) with expansion: Approx( 1.23 ) == 1.23 -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( Approx( d ) != 1.22 ) with expansion: Approx( 1.23 ) != 1.22 -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( Approx( d ) != 1.24 ) with expansion: Approx( 1.23 ) != 1.24 -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( INFINITY == Approx(INFINITY) ) with expansion: @@ -4638,7 +4638,7 @@ Message from section one Standard output from all sections is reported one ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... @@ -4649,7 +4649,7 @@ Message from section two Standard output from all sections is reported two ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... @@ -4658,15 +4658,15 @@ No assertions in section 'two' ------------------------------------------------------------------------------- StartsWith string matcher ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), StartsWith( "This String" ) ) with expansion: "this string contains 'abc' as a substring" starts with: "This String" -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) ) with expansion: "this string contains 'abc' as a substring" starts with: "string" (case @@ -4675,90 +4675,90 @@ with expansion: ------------------------------------------------------------------------------- String matchers ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( testStringForMatching(), Contains( "string" ) ) with expansion: "this string contains 'abc' as a substring" contains: "string" -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( testStringForMatching(), Contains( "string", Catch::CaseSensitive::No ) ) with expansion: "this string contains 'abc' as a substring" contains: "string" (case insensitive) -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( testStringForMatching(), Contains( "abc" ) ) with expansion: "this string contains 'abc' as a substring" contains: "abc" -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( testStringForMatching(), Contains( "aBC", Catch::CaseSensitive::No ) ) with expansion: "this string contains 'abc' as a substring" contains: "abc" (case insensitive) insensitive) -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( testStringForMatching(), StartsWith( "this" ) ) with expansion: "this string contains 'abc' as a substring" starts with: "this" -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( testStringForMatching(), StartsWith( "THIS", Catch::CaseSensitive::No ) ) with expansion: "this string contains 'abc' as a substring" starts with: "this" (case insensitive) -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( testStringForMatching(), EndsWith( "substring" ) ) with expansion: "this string contains 'abc' as a substring" ends with: "substring" -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( testStringForMatching(), EndsWith(" SuBsTrInG", Catch::CaseSensitive::No ) ) with expansion: "this string contains 'abc' as a substring" ends with: " substring" (case insensitive) -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( testStringForMatching(), Matches("this string contains 'abc' as a substring") ) with expansion: "this string contains 'abc' as a substring" matches "this string contains 'abc' as a substring" case sensitively -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( testStringForMatching(), Matches("this string CONTAINS 'abc' as a substring", Catch::CaseSensitive::No) ) with expansion: "this string contains 'abc' as a substring" matches "this string CONTAINS 'abc' as a substring" case insensitively -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( testStringForMatching(), Matches("^this string contains 'abc' as a substring$") ) with expansion: "this string contains 'abc' as a substring" matches "^this string contains 'abc' as a substring$" case sensitively -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( testStringForMatching(), Matches("^.* 'abc' .*$") ) with expansion: "this string contains 'abc' as a substring" matches "^.* 'abc' .*$" case sensitively -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: REQUIRE_THAT( testStringForMatching(), Matches("^.* 'ABC' .*$", Catch::CaseSensitive::No) ) with expansion: @@ -4769,22 +4769,22 @@ with expansion: StringRef Empty string ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( empty.empty() ) with expansion: true -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( empty.size() == 0 ) with expansion: 0 == 0 -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( std::strcmp( empty.c_str(), "" ) == 0 ) with expansion: @@ -4794,28 +4794,28 @@ with expansion: StringRef From string literal ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( s.empty() == false ) with expansion: false == false -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( s.size() == 5 ) with expansion: 5 == 5 -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( isSubstring( s ) == false ) with expansion: false == false -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( std::strcmp( rawChars, "hello" ) == 0 ) with expansion: @@ -4826,22 +4826,22 @@ StringRef From string literal c_str() does not cause copy ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( isOwned( s ) == false ) with expansion: false == false -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( s.c_str() == rawChars ) with expansion: "hello" == "hello" -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( isOwned( s ) == false ) with expansion: @@ -4851,14 +4851,14 @@ with expansion: StringRef From sub-string ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( original == "original" ) -StringRef.tests.cpp:: FAILED: +String.tests.cpp:: FAILED: REQUIRE( isSubstring( original ) ) with expansion: false @@ -4868,28 +4868,28 @@ StringRef Substrings zero-based substring ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( ss.empty() == false ) with expansion: false == false -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( ss.size() == 5 ) with expansion: 5 == 5 -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( std::strcmp( ss.c_str(), "hello" ) == 0 ) with expansion: 0 == 0 -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( ss == "hello" ) with expansion: @@ -4900,46 +4900,46 @@ StringRef Substrings c_str() causes copy ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( isSubstring( ss ) ) with expansion: true -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( isOwned( ss ) == false ) with expansion: false == false -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( rawChars == data( s ) ) with expansion: "hello world!" == "hello world!" -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( ss.c_str() != rawChars ) with expansion: "hello" != "hello world!" -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( isSubstring( ss ) == false ) with expansion: false == false -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( isOwned( ss ) ) with expansion: true -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( data( ss ) != data( s ) ) with expansion: @@ -4950,16 +4950,16 @@ StringRef Substrings non-zero-based substring ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( ss.size() == 6 ) with expansion: 6 == 6 -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( std::strcmp( ss.c_str(), "world!" ) == 0 ) with expansion: @@ -4970,10 +4970,10 @@ StringRef Substrings Pointer values of full refs should match ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( s.c_str() == s2.c_str() ) with expansion: @@ -4984,10 +4984,10 @@ StringRef Substrings Pointer values of substring refs should not match ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( s.c_str() != ss.c_str() ) with expansion: @@ -4997,16 +4997,16 @@ with expansion: StringRef Comparisons ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( StringRef("hello") == StringRef("hello") ) with expansion: hello == hello -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( StringRef("hello") != StringRef("cello") ) with expansion: @@ -5017,16 +5017,16 @@ StringRef from std::string implicitly constructed ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( sr == "a standard string" ) with expansion: a standard string == "a standard string" -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( sr.size() == stdStr.size() ) with expansion: @@ -5037,16 +5037,16 @@ StringRef from std::string explicitly constructed ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( sr == "a standard string" ) with expansion: a standard string == "a standard string" -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( sr.size() == stdStr.size() ) with expansion: @@ -5057,16 +5057,16 @@ StringRef from std::string assigned ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( sr == "a standard string" ) with expansion: a standard string == "a standard string" -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( sr.size() == stdStr.size() ) with expansion: @@ -5077,16 +5077,16 @@ StringRef to std::string implicitly constructed ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( stdStr == "a stringref" ) with expansion: "a stringref" == "a stringref" -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( stdStr.size() == sr.size() ) with expansion: @@ -5097,16 +5097,16 @@ StringRef to std::string explicitly constructed ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( stdStr == "a stringref" ) with expansion: "a stringref" == "a stringref" -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( stdStr.size() == sr.size() ) with expansion: @@ -5117,16 +5117,16 @@ StringRef to std::string assigned ------------------------------------------------------------------------------- -StringRef.tests.cpp: +String.tests.cpp: ............................................................................... -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( stdStr == "a stringref" ) with expansion: "a stringref" == "a stringref" -StringRef.tests.cpp:: +String.tests.cpp:: PASSED: REQUIRE( stdStr.size() == sr.size() ) with expansion: @@ -5135,28 +5135,28 @@ with expansion: ------------------------------------------------------------------------------- Stringifying std::chrono::duration helpers ------------------------------------------------------------------------------- -ToStringChrono.cpp: +ToStringChrono.tests.cpp: ............................................................................... -ToStringChrono.cpp:: +ToStringChrono.tests.cpp:: PASSED: REQUIRE( minute == seconds ) with expansion: 1 m == 60 s -ToStringChrono.cpp:: +ToStringChrono.tests.cpp:: PASSED: REQUIRE( hour != seconds ) with expansion: 1 h != 60 s -ToStringChrono.cpp:: +ToStringChrono.tests.cpp:: PASSED: REQUIRE( micro != milli ) with expansion: 1 us != 1 ms -ToStringChrono.cpp:: +ToStringChrono.tests.cpp:: PASSED: REQUIRE( nano != micro ) with expansion: @@ -5165,10 +5165,10 @@ with expansion: ------------------------------------------------------------------------------- Stringifying std::chrono::duration with weird ratios ------------------------------------------------------------------------------- -ToStringChrono.cpp: +ToStringChrono.tests.cpp: ............................................................................... -ToStringChrono.cpp:: +ToStringChrono.tests.cpp:: PASSED: REQUIRE( half_minute != femto_second ) with expansion: @@ -5177,10 +5177,10 @@ with expansion: ------------------------------------------------------------------------------- Stringifying std::chrono::time_point ------------------------------------------------------------------------------- -ToStringChrono.cpp: +ToStringChrono.tests.cpp: ............................................................................... -ToStringChrono.cpp:: +ToStringChrono.tests.cpp:: PASSED: REQUIRE( now != later ) with expansion: @@ -5191,10 +5191,10 @@ with expansion: ------------------------------------------------------------------------------- Tabs and newlines show in output ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( s1 == s2 ) with expansion: "if ($b == 10) { @@ -5210,10 +5210,10 @@ with expansion: Tag alias can be registered against tag patterns The same tag alias can only be registered once ------------------------------------------------------------------------------- -TagAliasTests.cpp: +TagAlias.tests.cpp: ............................................................................... -TagAliasTests.cpp:: +TagAlias.tests.cpp:: PASSED: CHECK_THAT( what, Contains( "[@zzz]" ) ) with expansion: @@ -5221,7 +5221,7 @@ with expansion: First seen at: file:2 Redefined at: file:10" contains: "[@zzz]" -TagAliasTests.cpp:: +TagAlias.tests.cpp:: PASSED: CHECK_THAT( what, Contains( "file" ) ) with expansion: @@ -5229,7 +5229,7 @@ with expansion: First seen at: file:2 Redefined at: file:10" contains: "file" -TagAliasTests.cpp:: +TagAlias.tests.cpp:: PASSED: CHECK_THAT( what, Contains( "2" ) ) with expansion: @@ -5237,7 +5237,7 @@ with expansion: First seen at: file:2 Redefined at: file:10" contains: "2" -TagAliasTests.cpp:: +TagAlias.tests.cpp:: PASSED: CHECK_THAT( what, Contains( "10" ) ) with expansion: @@ -5249,32 +5249,32 @@ with expansion: Tag alias can be registered against tag patterns Tag aliases must be of the form [@name] ------------------------------------------------------------------------------- -TagAliasTests.cpp: +TagAlias.tests.cpp: ............................................................................... -TagAliasTests.cpp:: +TagAlias.tests.cpp:: PASSED: CHECK_THROWS( registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) ) -TagAliasTests.cpp:: +TagAlias.tests.cpp:: PASSED: CHECK_THROWS( registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) ) -TagAliasTests.cpp:: +TagAlias.tests.cpp:: PASSED: CHECK_THROWS( registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) ) -TagAliasTests.cpp:: +TagAlias.tests.cpp:: PASSED: CHECK_THROWS( registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) ) ------------------------------------------------------------------------------- Test case with one argument ------------------------------------------------------------------------------- -VariadicMacrosTests.cpp: +VariadicMacros.tests.cpp: ............................................................................... -VariadicMacrosTests.cpp:: +VariadicMacros.tests.cpp:: PASSED: with message: no assertions @@ -5282,10 +5282,10 @@ with message: ------------------------------------------------------------------------------- Test enum bit values ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( 0x == bit30and31 ) with expansion: @@ -5294,20 +5294,20 @@ with expansion: ------------------------------------------------------------------------------- The NO_FAIL macro reports a failure but does not fail the test ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: +Message.tests.cpp:: FAILED - but was ok: CHECK_NOFAIL( 1 == 2 ) ------------------------------------------------------------------------------- This test 'should' fail but doesn't ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: oops! @@ -5315,16 +5315,16 @@ with message: ------------------------------------------------------------------------------- Tracker ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isOpen() ) with expansion: @@ -5334,28 +5334,28 @@ with expansion: Tracker successfully close one section ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isSuccessfullyCompleted() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( ctx.completedCycle() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isSuccessfullyCompleted() ) with expansion: @@ -5364,16 +5364,16 @@ with expansion: ------------------------------------------------------------------------------- Tracker ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isOpen() ) with expansion: @@ -5383,34 +5383,34 @@ with expansion: Tracker fail one section ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isSuccessfullyCompleted() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( ctx.completedCycle() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isSuccessfullyCompleted() == false ) with expansion: @@ -5421,34 +5421,34 @@ Tracker fail one section re-enter after failed section ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1b.isOpen() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( ctx.completedCycle() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isSuccessfullyCompleted() ) with expansion: @@ -5457,16 +5457,16 @@ with expansion: ------------------------------------------------------------------------------- Tracker ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isOpen() ) with expansion: @@ -5476,34 +5476,34 @@ with expansion: Tracker fail one section ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isSuccessfullyCompleted() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( ctx.completedCycle() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isSuccessfullyCompleted() == false ) with expansion: @@ -5514,40 +5514,40 @@ Tracker fail one section re-enter after failed section and find next section ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1b.isOpen() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( ctx.completedCycle() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isSuccessfullyCompleted() ) with expansion: @@ -5556,16 +5556,16 @@ with expansion: ------------------------------------------------------------------------------- Tracker ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isOpen() ) with expansion: @@ -5575,16 +5575,16 @@ with expansion: Tracker successfully close one section, then find another ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2.isOpen() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isComplete() == false ) with expansion: @@ -5595,28 +5595,28 @@ Tracker successfully close one section, then find another Re-enter - skips S1 and enters S2 ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1b.isOpen() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2b.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( ctx.completedCycle() == false ) with expansion: @@ -5628,28 +5628,28 @@ Tracker Re-enter - skips S1 and enters S2 Successfully close S2 ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( ctx.completedCycle() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2b.isSuccessfullyCompleted() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isSuccessfullyCompleted() ) with expansion: @@ -5658,16 +5658,16 @@ with expansion: ------------------------------------------------------------------------------- Tracker ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isOpen() ) with expansion: @@ -5677,16 +5677,16 @@ with expansion: Tracker successfully close one section, then find another ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2.isOpen() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isComplete() == false ) with expansion: @@ -5697,28 +5697,28 @@ Tracker successfully close one section, then find another Re-enter - skips S1 and enters S2 ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1b.isOpen() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2b.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( ctx.completedCycle() == false ) with expansion: @@ -5730,52 +5730,52 @@ Tracker Re-enter - skips S1 and enters S2 fail S2 ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( ctx.completedCycle() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2b.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2b.isSuccessfullyCompleted() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isSuccessfullyCompleted() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase3.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1c.isOpen() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2c.isOpen() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase3.isSuccessfullyCompleted() ) with expansion: @@ -5784,16 +5784,16 @@ with expansion: ------------------------------------------------------------------------------- Tracker ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isOpen() ) with expansion: @@ -5803,40 +5803,40 @@ with expansion: Tracker open a nested section ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isComplete() ) with expansion: @@ -5845,16 +5845,16 @@ with expansion: ------------------------------------------------------------------------------- Tracker ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isOpen() ) with expansion: @@ -5864,28 +5864,28 @@ with expansion: Tracker start a generator ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1.index() == 0 ) with expansion: 0 == 0 -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isComplete() == false ) with expansion: @@ -5896,16 +5896,16 @@ Tracker start a generator close outer section ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isSuccessfullyCompleted() == false ) with expansion: @@ -5917,52 +5917,52 @@ Tracker close outer section Re-enter for second generation ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1b.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1b.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1b.index() == 1 ) with expansion: 1 == 1 -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1b.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1b.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isComplete() ) with expansion: @@ -5971,16 +5971,16 @@ with expansion: ------------------------------------------------------------------------------- Tracker ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isOpen() ) with expansion: @@ -5990,28 +5990,28 @@ with expansion: Tracker start a generator ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1.index() == 0 ) with expansion: 0 == 0 -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isComplete() == false ) with expansion: @@ -6022,28 +6022,28 @@ Tracker start a generator Start a new inner section ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isComplete() == false ) with expansion: @@ -6055,58 +6055,58 @@ Tracker Start a new inner section Re-enter for second generation ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1b.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1b.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1b.index() == 1 ) with expansion: 1 == 1 -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2b.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2b.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1b.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1b.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isComplete() ) with expansion: @@ -6115,16 +6115,16 @@ with expansion: ------------------------------------------------------------------------------- Tracker ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isOpen() ) with expansion: @@ -6134,28 +6134,28 @@ with expansion: Tracker start a generator ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1.index() == 0 ) with expansion: 0 == 0 -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isComplete() == false ) with expansion: @@ -6166,34 +6166,34 @@ Tracker start a generator Fail an inner section ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2.isSuccessfullyCompleted() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase.isComplete() == false ) with expansion: @@ -6205,106 +6205,106 @@ Tracker Fail an inner section Re-enter for second generation ------------------------------------------------------------------------------- -PartTrackerTests.cpp: +PartTracker.tests.cpp: ............................................................................... -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1b.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1b.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1b.index() == 0 ) with expansion: 0 == 0 -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2b.isOpen() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1b.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1b.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase2.isComplete() == false ) with expansion: false == false -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase3.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1c.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1c.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1c.index() == 1 ) with expansion: 1 == 1 -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2c.isOpen() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s2c.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( g1c.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( s1c.isComplete() ) with expansion: true -PartTrackerTests.cpp:: +PartTracker.tests.cpp:: PASSED: REQUIRE( testCase3.isComplete() ) with expansion: @@ -6313,62 +6313,62 @@ with expansion: ------------------------------------------------------------------------------- Unexpected exceptions can be translated ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: due to unexpected exception with message: 3.14 ------------------------------------------------------------------------------- Use a custom approx ------------------------------------------------------------------------------- -ApproxTests.cpp: +Approx.tests.cpp: ............................................................................... -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d == approx( 1.23 ) ) with expansion: 1.23 == Approx( 1.23 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d == approx( 1.22 ) ) with expansion: 1.23 == Approx( 1.22 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d == approx( 1.24 ) ) with expansion: 1.23 == Approx( 1.24 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( d != approx( 1.25 ) ) with expansion: 1.23 != Approx( 1.25 ) -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( approx( d ) == 1.23 ) with expansion: Approx( 1.23 ) == 1.23 -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( approx( d ) == 1.22 ) with expansion: Approx( 1.23 ) == 1.22 -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( approx( d ) == 1.24 ) with expansion: Approx( 1.23 ) == 1.24 -ApproxTests.cpp:: +Approx.tests.cpp:: PASSED: REQUIRE( approx( d ) != 1.25 ) with expansion: @@ -6378,10 +6378,10 @@ with expansion: Variadic macros Section with one argument ------------------------------------------------------------------------------- -VariadicMacrosTests.cpp: +VariadicMacros.tests.cpp: ............................................................................... -VariadicMacrosTests.cpp:: +VariadicMacros.tests.cpp:: PASSED: with message: no assertions @@ -6390,16 +6390,16 @@ with message: Vector matchers Contains (element) ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( v, VectorContains( 1 ) ) with expansion: { 1, 2, 3 } Contains: 1 -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( v, VectorContains( 2 ) ) with expansion: @@ -6409,28 +6409,28 @@ with expansion: Vector matchers Contains (vector) ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( v, Contains( v2 ) ) with expansion: { 1, 2, 3 } Contains: { 1, 2 } -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( v, Contains( v2 ) ) with expansion: { 1, 2, 3 } Contains: { 1, 2, 3 } -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( v, Contains( empty) ) with expansion: { 1, 2, 3 } Contains: { } -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( empty, Contains( empty) ) with expansion: @@ -6440,10 +6440,10 @@ with expansion: Vector matchers Contains (element), composed ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( v, VectorContains( 1 ) && VectorContains( 2 ) ) with expansion: @@ -6453,22 +6453,22 @@ with expansion: Vector matchers Equals ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( v, Equals( v ) ) with expansion: { 1, 2, 3 } Equals: { 1, 2, 3 } -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( empty, Equals( empty ) ) with expansion: { } Equals: { } -MatchersTests.cpp:: +Matchers.tests.cpp:: PASSED: CHECK_THAT( v, Equals( v2 ) ) with expansion: @@ -6478,15 +6478,15 @@ with expansion: Vector matchers that fail Contains (element) ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( v, VectorContains( -1 ) ) with expansion: { 1, 2, 3 } Contains: -1 -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( empty, VectorContains( 1 ) ) with expansion: { } Contains: 1 @@ -6495,15 +6495,15 @@ with expansion: Vector matchers that fail Contains (vector) ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( empty, Contains( v) ) with expansion: { } Contains: { 1, 2, 3 } -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( v, Contains( v2 ) ) with expansion: { 1, 2, 3 } Contains: { 1, 2, 4 } @@ -6512,25 +6512,25 @@ with expansion: Vector matchers that fail Equals ------------------------------------------------------------------------------- -MatchersTests.cpp: +Matchers.tests.cpp: ............................................................................... -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( v, Equals( v2 ) ) with expansion: { 1, 2, 3 } Equals: { 1, 2 } -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( v2, Equals( v ) ) with expansion: { 1, 2 } Equals: { 1, 2, 3 } -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( empty, Equals( v ) ) with expansion: { } Equals: { 1, 2, 3 } -MatchersTests.cpp:: FAILED: +Matchers.tests.cpp:: FAILED: CHECK_THAT( v, Equals( empty ) ) with expansion: { 1, 2, 3 } Equals: { } @@ -6538,38 +6538,38 @@ with expansion: ------------------------------------------------------------------------------- When checked exceptions are thrown they can be expected or unexpected ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: REQUIRE_THROWS_AS( thisThrows(), std::domain_error ) -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: REQUIRE_NOTHROW( thisDoesntThrow() ) -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: REQUIRE_THROWS( thisThrows() ) ------------------------------------------------------------------------------- When unchecked exceptions are thrown directly they are always failures ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: due to unexpected exception with message: unexpected exception ------------------------------------------------------------------------------- When unchecked exceptions are thrown during a CHECK the test should continue ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: CHECK( thisThrows() == 0 ) due to unexpected exception with message: expected exception @@ -6578,10 +6578,10 @@ due to unexpected exception with message: When unchecked exceptions are thrown during a REQUIRE the test should abort fail ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: REQUIRE( thisThrows() == 0 ) due to unexpected exception with message: expected exception @@ -6589,10 +6589,10 @@ due to unexpected exception with message: ------------------------------------------------------------------------------- When unchecked exceptions are thrown from functions they are always failures ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: CHECK( thisThrows() == 0 ) due to unexpected exception with message: expected exception @@ -6601,20 +6601,20 @@ due to unexpected exception with message: When unchecked exceptions are thrown from sections they are always failures section name ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: due to unexpected exception with message: unexpected exception ------------------------------------------------------------------------------- Where the LHS is not a simple value ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: warning: Uncomment the code in this test to check that it gives a sensible compiler error @@ -6622,10 +6622,10 @@ warning: ------------------------------------------------------------------------------- Where there is more to the expression after the RHS ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: warning: Uncomment the code in this test to check that it gives a sensible compiler error @@ -6633,47 +6633,47 @@ warning: ------------------------------------------------------------------------------- X/level/0/a ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: ------------------------------------------------------------------------------- X/level/0/b ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: ------------------------------------------------------------------------------- X/level/1/a ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: ------------------------------------------------------------------------------- X/level/1/b ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: ------------------------------------------------------------------------------- XmlEncode normal string ------------------------------------------------------------------------------- -XmlTests.cpp: +Xml.tests.cpp: ............................................................................... -XmlTests.cpp:: +Xml.tests.cpp:: PASSED: REQUIRE( encode( "normal string" ) == "normal string" ) with expansion: @@ -6683,10 +6683,10 @@ with expansion: XmlEncode empty string ------------------------------------------------------------------------------- -XmlTests.cpp: +Xml.tests.cpp: ............................................................................... -XmlTests.cpp:: +Xml.tests.cpp:: PASSED: REQUIRE( encode( "" ) == "" ) with expansion: @@ -6696,10 +6696,10 @@ with expansion: XmlEncode string with ampersand ------------------------------------------------------------------------------- -XmlTests.cpp: +Xml.tests.cpp: ............................................................................... -XmlTests.cpp:: +Xml.tests.cpp:: PASSED: REQUIRE( encode( "smith & jones" ) == "smith & jones" ) with expansion: @@ -6709,10 +6709,10 @@ with expansion: XmlEncode string with less-than ------------------------------------------------------------------------------- -XmlTests.cpp: +Xml.tests.cpp: ............................................................................... -XmlTests.cpp:: +Xml.tests.cpp:: PASSED: REQUIRE( encode( "smith < jones" ) == "smith < jones" ) with expansion: @@ -6722,16 +6722,16 @@ with expansion: XmlEncode string with greater-than ------------------------------------------------------------------------------- -XmlTests.cpp: +Xml.tests.cpp: ............................................................................... -XmlTests.cpp:: +Xml.tests.cpp:: PASSED: REQUIRE( encode( "smith > jones" ) == "smith > jones" ) with expansion: "smith > jones" == "smith > jones" -XmlTests.cpp:: +Xml.tests.cpp:: PASSED: REQUIRE( encode( "smith ]]> jones" ) == "smith ]]> jones" ) with expansion: @@ -6743,10 +6743,10 @@ with expansion: XmlEncode string with quotes ------------------------------------------------------------------------------- -XmlTests.cpp: +Xml.tests.cpp: ............................................................................... -XmlTests.cpp:: +Xml.tests.cpp:: PASSED: REQUIRE( encode( stringWithQuotes ) == stringWithQuotes ) with expansion: @@ -6754,7 +6754,7 @@ with expansion: == "don't "quote" me on that" -XmlTests.cpp:: +Xml.tests.cpp:: PASSED: REQUIRE( encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't "quote" me on that" ) with expansion: @@ -6766,10 +6766,10 @@ with expansion: XmlEncode string with control char (1) ------------------------------------------------------------------------------- -XmlTests.cpp: +Xml.tests.cpp: ............................................................................... -XmlTests.cpp:: +Xml.tests.cpp:: PASSED: REQUIRE( encode( "[\x01]" ) == "[\\x01]" ) with expansion: @@ -6779,10 +6779,10 @@ with expansion: XmlEncode string with control char (x7F) ------------------------------------------------------------------------------- -XmlTests.cpp: +Xml.tests.cpp: ............................................................................... -XmlTests.cpp:: +Xml.tests.cpp:: PASSED: REQUIRE( encode( "[\x7F]" ) == "[\\x7F]" ) with expansion: @@ -6791,10 +6791,10 @@ with expansion: ------------------------------------------------------------------------------- atomic if ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( x == 0 ) with expansion: @@ -6803,10 +6803,10 @@ with expansion: ------------------------------------------------------------------------------- boolean member ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( obj.prop != 0 ) with expansion: @@ -6815,16 +6815,16 @@ with expansion: ------------------------------------------------------------------------------- checkedElse ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: CHECKED_ELSE( flag ) with expansion: true -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( testCheckedElse( true ) ) with expansion: @@ -6833,15 +6833,15 @@ with expansion: ------------------------------------------------------------------------------- checkedElse, failing ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECKED_ELSE( flag ) with expansion: false -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: REQUIRE( testCheckedElse( false ) ) with expansion: false @@ -6849,16 +6849,16 @@ with expansion: ------------------------------------------------------------------------------- checkedIf ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: CHECKED_IF( flag ) with expansion: true -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( testCheckedIf( true ) ) with expansion: @@ -6867,15 +6867,15 @@ with expansion: ------------------------------------------------------------------------------- checkedIf, failing ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECKED_IF( flag ) with expansion: false -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: REQUIRE( testCheckedIf( false ) ) with expansion: false @@ -6883,28 +6883,28 @@ with expansion: ------------------------------------------------------------------------------- comparisons between const int variables ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( unsigned_char_var == 1 ) with expansion: 1 == 1 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( unsigned_short_var == 1 ) with expansion: 1 == 1 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( unsigned_int_var == 1 ) with expansion: 1 == 1 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( unsigned_long_var == 1 ) with expansion: @@ -6913,28 +6913,28 @@ with expansion: ------------------------------------------------------------------------------- comparisons between int variables ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( long_var == unsigned_char_var ) with expansion: 1 == 1 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( long_var == unsigned_short_var ) with expansion: 1 == 1 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( long_var == unsigned_int_var ) with expansion: 1 == 1 -ConditionTests.cpp:: +Condition.tests.cpp:: PASSED: REQUIRE( long_var == unsigned_long_var ) with expansion: @@ -6945,10 +6945,10 @@ even more nested SECTION tests c d (leaf) ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: ------------------------------------------------------------------------------- @@ -6956,40 +6956,40 @@ even more nested SECTION tests c e (leaf) ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: ------------------------------------------------------------------------------- even more nested SECTION tests f (leaf) ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: loose text artifact ------------------------------------------------------------------------------- just failure ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: explicitly with message: Previous info should not be seen ------------------------------------------------------------------------------- long long ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( l == std::numeric_limits::max() ) with expansion: @@ -7001,10 +7001,10 @@ with expansion: looped SECTION tests s1 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( b > a ) with expansion: 0 > 1 @@ -7012,24 +7012,24 @@ with expansion: ------------------------------------------------------------------------------- looped tests ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: 1 == 0 with message: Testing if fib[0] (1) is even -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: 1 == 0 with message: Testing if fib[1] (1) is even -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: @@ -7037,21 +7037,21 @@ with expansion: with message: Testing if fib[2] (2) is even -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: 1 == 0 with message: Testing if fib[3] (3) is even -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: 1 == 0 with message: Testing if fib[4] (5) is even -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: @@ -7059,14 +7059,14 @@ with expansion: with message: Testing if fib[5] (8) is even -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: 1 == 0 with message: Testing if fib[6] (13) is even -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( ( fib[i] % 2 ) == 0 ) with expansion: 1 == 0 @@ -7078,10 +7078,10 @@ more nested SECTION tests s1 s2 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: REQUIRE( a == b ) with expansion: 1 == 2 @@ -7091,10 +7091,10 @@ more nested SECTION tests s1 s3 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( a != b ) with expansion: @@ -7105,10 +7105,10 @@ more nested SECTION tests s1 s4 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( a < b ) with expansion: @@ -7118,16 +7118,16 @@ with expansion: nested SECTION tests s1 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( a != b ) with expansion: 1 != 2 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( b != a ) with expansion: @@ -7138,10 +7138,10 @@ nested SECTION tests s1 s2 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( a != b ) with expansion: @@ -7150,10 +7150,10 @@ with expansion: ------------------------------------------------------------------------------- non streamable - with conv. op ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( s == "7" ) with expansion: @@ -7162,10 +7162,10 @@ with expansion: ------------------------------------------------------------------------------- non-copyable objects ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: CHECK( ti == typeid(int) ) with expansion: @@ -7174,25 +7174,25 @@ with expansion: ------------------------------------------------------------------------------- not allowed ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: ------------------------------------------------------------------------------- null strings ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( makeString( false ) != static_cast(0) ) with expansion: "valid string" != {null string} -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( makeString( true ) == static_cast(0) ) with expansion: @@ -7201,10 +7201,10 @@ with expansion: ------------------------------------------------------------------------------- null_ptr ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( ptr.get() == 0 ) with expansion: @@ -7213,10 +7213,10 @@ with expansion: ------------------------------------------------------------------------------- pair > -> toString ------------------------------------------------------------------------------- -ToStringPair.cpp: +ToStringPair.tests.cpp: ............................................................................... -ToStringPair.cpp:: +ToStringPair.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" ) with expansion: @@ -7227,10 +7227,10 @@ with expansion: ------------------------------------------------------------------------------- pointer to class ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: +Tricky.tests.cpp:: PASSED: REQUIRE( p == 0 ) with expansion: @@ -7240,16 +7240,16 @@ with expansion: random SECTION tests s1 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( a != b ) with expansion: 1 != 2 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( b != a ) with expansion: @@ -7259,10 +7259,10 @@ with expansion: random SECTION tests s2 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( a != b ) with expansion: @@ -7272,16 +7272,16 @@ with expansion: replaceInPlace replace single char ------------------------------------------------------------------------------- -TestMain.cpp: +String.tests.cpp: ............................................................................... -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( Catch::replaceInPlace( letters, "b", "z" ) ) with expansion: true -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( letters == "azcdefcg" ) with expansion: @@ -7291,16 +7291,16 @@ with expansion: replaceInPlace replace two chars ------------------------------------------------------------------------------- -TestMain.cpp: +String.tests.cpp: ............................................................................... -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( Catch::replaceInPlace( letters, "c", "z" ) ) with expansion: true -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( letters == "abzdefzg" ) with expansion: @@ -7310,16 +7310,16 @@ with expansion: replaceInPlace replace first char ------------------------------------------------------------------------------- -TestMain.cpp: +String.tests.cpp: ............................................................................... -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( Catch::replaceInPlace( letters, "a", "z" ) ) with expansion: true -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( letters == "zbcdefcg" ) with expansion: @@ -7329,16 +7329,16 @@ with expansion: replaceInPlace replace last char ------------------------------------------------------------------------------- -TestMain.cpp: +String.tests.cpp: ............................................................................... -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( Catch::replaceInPlace( letters, "g", "z" ) ) with expansion: true -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( letters == "abcdefcz" ) with expansion: @@ -7348,16 +7348,16 @@ with expansion: replaceInPlace replace all chars ------------------------------------------------------------------------------- -TestMain.cpp: +String.tests.cpp: ............................................................................... -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( Catch::replaceInPlace( letters, letters, "replaced" ) ) with expansion: true -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( letters == "replaced" ) with expansion: @@ -7367,16 +7367,16 @@ with expansion: replaceInPlace replace no chars ------------------------------------------------------------------------------- -TestMain.cpp: +String.tests.cpp: ............................................................................... -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK_FALSE( Catch::replaceInPlace( letters, "x", "z" ) ) with expansion: !false -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( letters == letters ) with expansion: @@ -7386,16 +7386,16 @@ with expansion: replaceInPlace escape ' ------------------------------------------------------------------------------- -TestMain.cpp: +String.tests.cpp: ............................................................................... -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( Catch::replaceInPlace( s, "'", "|'" ) ) with expansion: true -TestMain.cpp:: +String.tests.cpp:: PASSED: CHECK( s == "didn|'t" ) with expansion: @@ -7404,10 +7404,10 @@ with expansion: ------------------------------------------------------------------------------- send a single char to INFO ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: REQUIRE( false ) with message: 3 @@ -7415,10 +7415,10 @@ with message: ------------------------------------------------------------------------------- sends information to INFO ------------------------------------------------------------------------------- -MessageTests.cpp: +Message.tests.cpp: ............................................................................... -MessageTests.cpp:: FAILED: +Message.tests.cpp:: FAILED: REQUIRE( false ) with messages: hi @@ -7427,10 +7427,10 @@ with messages: ------------------------------------------------------------------------------- std::pair -> toString ------------------------------------------------------------------------------- -ToStringPair.cpp: +ToStringPair.tests.cpp: ............................................................................... -ToStringPair.cpp:: +ToStringPair.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" ) with expansion: @@ -7439,10 +7439,10 @@ with expansion: ------------------------------------------------------------------------------- std::pair -> toString ------------------------------------------------------------------------------- -ToStringPair.cpp: +ToStringPair.tests.cpp: ............................................................................... -ToStringPair.cpp:: +ToStringPair.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" ) with expansion: @@ -7451,10 +7451,10 @@ with expansion: ------------------------------------------------------------------------------- std::vector > -> toString ------------------------------------------------------------------------------- -ToStringPair.cpp: +ToStringPair.tests.cpp: ............................................................................... -ToStringPair.cpp:: +ToStringPair.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" ) with expansion: @@ -7465,10 +7465,10 @@ with expansion: ------------------------------------------------------------------------------- string literals of different sizes can be compared ------------------------------------------------------------------------------- -TrickyTests.cpp: +Tricky.tests.cpp: ............................................................................... -TrickyTests.cpp:: FAILED: +Tricky.tests.cpp:: FAILED: REQUIRE( std::string( "first" ) == "second" ) with expansion: "first" == "second" @@ -7476,10 +7476,10 @@ with expansion: ------------------------------------------------------------------------------- stringify( has_maker ) ------------------------------------------------------------------------------- -ToStringWhich.cpp: +ToStringWhich.tests.cpp: ............................................................................... -ToStringWhich.cpp:: +ToStringWhich.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker" ) with expansion: @@ -7490,10 +7490,10 @@ with expansion: ------------------------------------------------------------------------------- stringify( has_maker_and_toString ) ------------------------------------------------------------------------------- -ToStringWhich.cpp: +ToStringWhich.tests.cpp: ............................................................................... -ToStringWhich.cpp:: +ToStringWhich.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify( item ) == "StringMaker" ) with expansion: @@ -7504,10 +7504,10 @@ with expansion: ------------------------------------------------------------------------------- stringify( has_operator ) ------------------------------------------------------------------------------- -ToStringWhich.cpp: +ToStringWhich.tests.cpp: ............................................................................... -ToStringWhich.cpp:: +ToStringWhich.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" ) with expansion: @@ -7518,10 +7518,10 @@ with expansion: ------------------------------------------------------------------------------- toString on const wchar_t const pointer returns the string contents ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: CHECK( result == "\"wide load\"" ) with expansion: @@ -7530,10 +7530,10 @@ with expansion: ------------------------------------------------------------------------------- toString on const wchar_t pointer returns the string contents ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: CHECK( result == "\"wide load\"" ) with expansion: @@ -7542,10 +7542,10 @@ with expansion: ------------------------------------------------------------------------------- toString on wchar_t const pointer returns the string contents ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: CHECK( result == "\"wide load\"" ) with expansion: @@ -7554,10 +7554,10 @@ with expansion: ------------------------------------------------------------------------------- toString on wchar_t returns the string contents ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: CHECK( result == "\"wide load\"" ) with expansion: @@ -7566,10 +7566,10 @@ with expansion: ------------------------------------------------------------------------------- toString( vectors +ToStringWhich.tests.cpp: ............................................................................... -ToStringWhich.cpp:: +ToStringWhich.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify( v ) == "{ StringMaker }" ) with expansion: @@ -7580,22 +7580,22 @@ with expansion: ------------------------------------------------------------------------------- toString(enum class w/operator<<) ------------------------------------------------------------------------------- -EnumToString.cpp: +EnumToString.tests.cpp: ............................................................................... -EnumToString.cpp:: +EnumToString.tests.cpp:: PASSED: CHECK( ::Catch::Detail::stringify(e0) == "E2/V0" ) with expansion: "E2/V0" == "E2/V0" -EnumToString.cpp:: +EnumToString.tests.cpp:: PASSED: CHECK( ::Catch::Detail::stringify(e1) == "E2/V1" ) with expansion: "E2/V1" == "E2/V1" -EnumToString.cpp:: +EnumToString.tests.cpp:: PASSED: CHECK( ::Catch::Detail::stringify(e3) == "Unknown enum value 10" ) with expansion: @@ -7606,15 +7606,15 @@ with expansion: ------------------------------------------------------------------------------- toString(enum class) ------------------------------------------------------------------------------- -EnumToString.cpp: +EnumToString.tests.cpp: ............................................................................... -EnumToString.cpp:: FAILED: +EnumToString.tests.cpp:: FAILED: CHECK( ::Catch::Detail::stringify(e0) == "0" ) with expansion: "{?}" == "0" -EnumToString.cpp:: FAILED: +EnumToString.tests.cpp:: FAILED: CHECK( ::Catch::Detail::stringify(e1) == "1" ) with expansion: "{?}" == "1" @@ -7622,16 +7622,16 @@ with expansion: ------------------------------------------------------------------------------- toString(enum w/operator<<) ------------------------------------------------------------------------------- -EnumToString.cpp: +EnumToString.tests.cpp: ............................................................................... -EnumToString.cpp:: +EnumToString.tests.cpp:: PASSED: CHECK( ::Catch::Detail::stringify(e0) == "E2{0}" ) with expansion: "E2{0}" == "E2{0}" -EnumToString.cpp:: +EnumToString.tests.cpp:: PASSED: CHECK( ::Catch::Detail::stringify(e1) == "E2{1}" ) with expansion: @@ -7640,16 +7640,16 @@ with expansion: ------------------------------------------------------------------------------- toString(enum) ------------------------------------------------------------------------------- -EnumToString.cpp: +EnumToString.tests.cpp: ............................................................................... -EnumToString.cpp:: +EnumToString.tests.cpp:: PASSED: CHECK( ::Catch::Detail::stringify(e0) == "0" ) with expansion: "0" == "0" -EnumToString.cpp:: +EnumToString.tests.cpp:: PASSED: CHECK( ::Catch::Detail::stringify(e1) == "1" ) with expansion: @@ -7658,16 +7658,16 @@ with expansion: ------------------------------------------------------------------------------- tuple<> ------------------------------------------------------------------------------- -ToStringTuple.cpp: +ToStringTuple.tests.cpp: ............................................................................... -ToStringTuple.cpp:: +ToStringTuple.tests.cpp:: PASSED: CHECK( "{ }" == ::Catch::Detail::stringify(type{}) ) with expansion: "{ }" == "{ }" -ToStringTuple.cpp:: +ToStringTuple.tests.cpp:: PASSED: CHECK( "{ }" == ::Catch::Detail::stringify(value) ) with expansion: @@ -7676,16 +7676,16 @@ with expansion: ------------------------------------------------------------------------------- tuple ------------------------------------------------------------------------------- -ToStringTuple.cpp: +ToStringTuple.tests.cpp: ............................................................................... -ToStringTuple.cpp:: +ToStringTuple.tests.cpp:: PASSED: CHECK( "1.2f" == ::Catch::Detail::stringify(float(1.2)) ) with expansion: "1.2f" == "1.2f" -ToStringTuple.cpp:: +ToStringTuple.tests.cpp:: PASSED: CHECK( "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) ) with expansion: @@ -7694,10 +7694,10 @@ with expansion: ------------------------------------------------------------------------------- tuple ------------------------------------------------------------------------------- -ToStringTuple.cpp: +ToStringTuple.tests.cpp: ............................................................................... -ToStringTuple.cpp:: +ToStringTuple.tests.cpp:: PASSED: CHECK( "{ 0 }" == ::Catch::Detail::stringify(type{0}) ) with expansion: @@ -7706,10 +7706,10 @@ with expansion: ------------------------------------------------------------------------------- tuple<0,int,const char *> ------------------------------------------------------------------------------- -ToStringTuple.cpp: +ToStringTuple.tests.cpp: ............................................................................... -ToStringTuple.cpp:: +ToStringTuple.tests.cpp:: PASSED: CHECK( "{ 0, 42, \"Catch me\" }" == ::Catch::Detail::stringify(value) ) with expansion: @@ -7720,10 +7720,10 @@ with expansion: ------------------------------------------------------------------------------- tuple ------------------------------------------------------------------------------- -ToStringTuple.cpp: +ToStringTuple.tests.cpp: ............................................................................... -ToStringTuple.cpp:: +ToStringTuple.tests.cpp:: PASSED: CHECK( "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) ) with expansion: @@ -7734,10 +7734,10 @@ with expansion: ------------------------------------------------------------------------------- tuple,tuple<>,float> ------------------------------------------------------------------------------- -ToStringTuple.cpp: +ToStringTuple.tests.cpp: ............................................................................... -ToStringTuple.cpp:: +ToStringTuple.tests.cpp:: PASSED: CHECK( "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) ) with expansion: @@ -7748,16 +7748,16 @@ with expansion: ------------------------------------------------------------------------------- vec> -> toString ------------------------------------------------------------------------------- -ToStringVector.cpp: +ToStringVector.tests.cpp: ............................................................................... -ToStringVector.cpp:: +ToStringVector.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify(v) == "{ }" ) with expansion: "{ }" == "{ }" -ToStringVector.cpp:: +ToStringVector.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" ) with expansion: @@ -7768,22 +7768,22 @@ with expansion: ------------------------------------------------------------------------------- vector -> toString ------------------------------------------------------------------------------- -ToStringVector.cpp: +ToStringVector.tests.cpp: ............................................................................... -ToStringVector.cpp:: +ToStringVector.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" ) with expansion: "{ }" == "{ }" -ToStringVector.cpp:: +ToStringVector.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" ) with expansion: "{ 42 }" == "{ 42 }" -ToStringVector.cpp:: +ToStringVector.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" ) with expansion: @@ -7792,22 +7792,22 @@ with expansion: ------------------------------------------------------------------------------- vector -> toString ------------------------------------------------------------------------------- -ToStringVector.cpp: +ToStringVector.tests.cpp: ............................................................................... -ToStringVector.cpp:: +ToStringVector.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" ) with expansion: "{ }" == "{ }" -ToStringVector.cpp:: +ToStringVector.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42 }" ) with expansion: "{ 42 }" == "{ 42 }" -ToStringVector.cpp:: +ToStringVector.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify(vv) == "{ 42, 250 }" ) with expansion: @@ -7816,22 +7816,22 @@ with expansion: ------------------------------------------------------------------------------- vector -> toString ------------------------------------------------------------------------------- -ToStringVector.cpp: +ToStringVector.tests.cpp: ............................................................................... -ToStringVector.cpp:: +ToStringVector.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify(vv) == "{ }" ) with expansion: "{ }" == "{ }" -ToStringVector.cpp:: +ToStringVector.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\" }" ) with expansion: "{ "hello" }" == "{ "hello" }" -ToStringVector.cpp:: +ToStringVector.tests.cpp:: PASSED: REQUIRE( ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" ) with expansion: @@ -7842,16 +7842,16 @@ with expansion: ------------------------------------------------------------------------------- vectors can be sized and resized ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.size() == 5 ) with expansion: 5 == 5 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.capacity() >= 5 ) with expansion: @@ -7861,16 +7861,16 @@ with expansion: vectors can be sized and resized resizing bigger changes size and capacity ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.size() == 10 ) with expansion: 10 == 10 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.capacity() >= 10 ) with expansion: @@ -7879,16 +7879,16 @@ with expansion: ------------------------------------------------------------------------------- vectors can be sized and resized ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.size() == 5 ) with expansion: 5 == 5 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.capacity() >= 5 ) with expansion: @@ -7898,16 +7898,16 @@ with expansion: vectors can be sized and resized resizing smaller changes size but not capacity ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.size() == 0 ) with expansion: 0 == 0 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.capacity() >= 5 ) with expansion: @@ -7918,10 +7918,10 @@ vectors can be sized and resized resizing smaller changes size but not capacity We can use the 'swap trick' to reset the capacity ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.capacity() == 0 ) with expansion: @@ -7930,16 +7930,16 @@ with expansion: ------------------------------------------------------------------------------- vectors can be sized and resized ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.size() == 5 ) with expansion: 5 == 5 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.capacity() >= 5 ) with expansion: @@ -7949,16 +7949,16 @@ with expansion: vectors can be sized and resized reserving bigger changes capacity but not size ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.size() == 5 ) with expansion: 5 == 5 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.capacity() >= 10 ) with expansion: @@ -7967,16 +7967,16 @@ with expansion: ------------------------------------------------------------------------------- vectors can be sized and resized ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.size() == 5 ) with expansion: 5 == 5 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.capacity() >= 5 ) with expansion: @@ -7986,16 +7986,16 @@ with expansion: vectors can be sized and resized reserving smaller does not change size or capacity ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.size() == 5 ) with expansion: 5 == 5 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( v.capacity() >= 5 ) with expansion: @@ -8005,20 +8005,20 @@ with expansion: xmlentitycheck embedded xml ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: ------------------------------------------------------------------------------- xmlentitycheck encoded chars ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: =============================================================================== diff --git a/projects/SelfTest/Baselines/console.swa4.approved.txt b/projects/SelfTest/Baselines/console.swa4.approved.txt index 18d25f6e..19c6e5c1 100644 --- a/projects/SelfTest/Baselines/console.swa4.approved.txt +++ b/projects/SelfTest/Baselines/console.swa4.approved.txt @@ -6,10 +6,10 @@ Run with -? for options ------------------------------------------------------------------------------- # A test name that starts with a # ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: yay @@ -18,16 +18,16 @@ with message: #1005: Comparing pointer to int and long (NULL can be either on various systems) ------------------------------------------------------------------------------- -DecompositionTests.cpp: +Decomposition.tests.cpp: ............................................................................... -DecompositionTests.cpp:: +Decomposition.tests.cpp:: PASSED: REQUIRE( fptr == 0 ) with expansion: 0 == 0 -DecompositionTests.cpp:: +Decomposition.tests.cpp:: PASSED: REQUIRE( fptr == 0l ) with expansion: @@ -36,16 +36,16 @@ with expansion: ------------------------------------------------------------------------------- #1027 ------------------------------------------------------------------------------- -CompilationTests.cpp: +Compilation.tests.cpp: ............................................................................... -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE( y.v == 0 ) with expansion: 0 == 0 -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE( 0 == y.v ) with expansion: @@ -55,10 +55,10 @@ with expansion: #748 - captures with unexpected exceptions outside assertions ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: due to unexpected exception with messages: answer := 42 expected exception @@ -67,10 +67,10 @@ due to unexpected exception with messages: #748 - captures with unexpected exceptions inside REQUIRE_NOTHROW ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: FAILED: +Exception.tests.cpp:: FAILED: REQUIRE_NOTHROW( thisThrows() ) due to unexpected exception with messages: answer := 42 @@ -80,10 +80,10 @@ due to unexpected exception with messages: #748 - captures with unexpected exceptions inside REQUIRE_THROWS ------------------------------------------------------------------------------- -ExceptionTests.cpp: +Exception.tests.cpp: ............................................................................... -ExceptionTests.cpp:: +Exception.tests.cpp:: PASSED: REQUIRE_THROWS( thisThrows() ) with message: @@ -92,10 +92,10 @@ with message: ------------------------------------------------------------------------------- #809 ------------------------------------------------------------------------------- -CompilationTests.cpp: +Compilation.tests.cpp: ............................................................................... -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE( 42 == f ) with expansion: @@ -104,40 +104,40 @@ with expansion: ------------------------------------------------------------------------------- #833 ------------------------------------------------------------------------------- -CompilationTests.cpp: +Compilation.tests.cpp: ............................................................................... -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE( a == t ) with expansion: 3 == 3 -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: CHECK( a == t ) with expansion: 3 == 3 -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE_THROWS( throws_int(true) ) -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: CHECK_THROWS_AS( throws_int(true), int ) -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE_NOTHROW( throws_int(false) ) -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE_THAT( "aaa", Catch::EndsWith("aaa") ) with expansion: "aaa" ends with: "aaa" -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE( templated_tests(3) ) with expansion: @@ -146,15 +146,15 @@ with expansion: ------------------------------------------------------------------------------- #835 -- errno should not be touched by Catch ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: FAILED: +Misc.tests.cpp:: FAILED: CHECK( f() == 0 ) with expansion: 1 == 0 -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: REQUIRE( errno == 1 ) with expansion: @@ -163,10 +163,10 @@ with expansion: ------------------------------------------------------------------------------- #872 ------------------------------------------------------------------------------- -CompilationTests.cpp: +Compilation.tests.cpp: ............................................................................... -CompilationTests.cpp:: +Compilation.tests.cpp:: PASSED: REQUIRE( x == 4 ) with expansion: @@ -178,10 +178,10 @@ with message: #961 -- Dynamically created sections should all be reported Looped section 0 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: Everything is OK @@ -190,10 +190,10 @@ with message: #961 -- Dynamically created sections should all be reported Looped section 1 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: Everything is OK @@ -202,10 +202,10 @@ with message: #961 -- Dynamically created sections should all be reported Looped section 2 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: Everything is OK @@ -214,10 +214,10 @@ with message: #961 -- Dynamically created sections should all be reported Looped section 3 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: Everything is OK @@ -226,10 +226,10 @@ with message: #961 -- Dynamically created sections should all be reported Looped section 4 ------------------------------------------------------------------------------- -MiscTests.cpp: +Misc.tests.cpp: ............................................................................... -MiscTests.cpp:: +Misc.tests.cpp:: PASSED: with message: Everything is OK @@ -237,21 +237,21 @@ with message: ------------------------------------------------------------------------------- 'Not' checks that should fail ------------------------------------------------------------------------------- -ConditionTests.cpp: +Condition.tests.cpp: ............................................................................... -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( false != false ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( true != true ) -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK( !true ) with expansion: false -ConditionTests.cpp:: FAILED: +Condition.tests.cpp:: FAILED: CHECK_FALSE( true ) with expansion: !true diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt index 97adb60b..249529ea 100644 --- a/projects/SelfTest/Baselines/junit.sw.approved.txt +++ b/projects/SelfTest/Baselines/junit.sw.approved.txt @@ -9,14 +9,14 @@ expected exception answer := 42 -ExceptionTests.cpp: +Exception.tests.cpp: expected exception answer := 42 -ExceptionTests.cpp: +Exception.tests.cpp: @@ -24,7 +24,7 @@ ExceptionTests.cpp: -MiscTests.cpp: +Misc.tests.cpp: @@ -35,28 +35,28 @@ MiscTests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: @@ -67,29 +67,29 @@ ConditionTests.cpp: -ClassTests.cpp: +Class.tests.cpp: -ClassTests.cpp: +Class.tests.cpp: to infinity and beyond -MiscTests.cpp: +Misc.tests.cpp: -TrickyTests.cpp: +Tricky.tests.cpp: -TrickyTests.cpp: +Tricky.tests.cpp: @@ -97,7 +97,7 @@ TrickyTests.cpp: unexpected exception -ExceptionTests.cpp: +Exception.tests.cpp: @@ -127,115 +127,115 @@ ExceptionTests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: custom exception - not std -ExceptionTests.cpp: +Exception.tests.cpp: custom exception - not std -ExceptionTests.cpp: +Exception.tests.cpp: custom std exception -ExceptionTests.cpp: +Exception.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: Unknown exception -MatchersTests.cpp: +Matchers.tests.cpp: Unknown exception -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: @@ -245,31 +245,31 @@ MatchersTests.cpp: expected exception -ExceptionTests.cpp: +Exception.tests.cpp: -ExceptionTests.cpp: +Exception.tests.cpp: expected exception -ExceptionTests.cpp: +Exception.tests.cpp: This is a failure -MessageTests.cpp: +Message.tests.cpp: -MessageTests.cpp: +Message.tests.cpp: This is a failure -MessageTests.cpp: +Message.tests.cpp: @@ -285,44 +285,44 @@ MessageTests.cpp: this message should be logged so should this -MessageTests.cpp: +Message.tests.cpp: this message may be logged later this message should be logged -MessageTests.cpp: +Message.tests.cpp: this message may be logged later this message should be logged and this, but later -MessageTests.cpp: +Message.tests.cpp: current counter 10 i := 10 -MessageTests.cpp: +Message.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: @@ -333,98 +333,98 @@ ConditionTests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -ExceptionTests.cpp: +Exception.tests.cpp: custom exception -ExceptionTests.cpp: +Exception.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: -ConditionTests.cpp: +Condition.tests.cpp: Message from section one -MessageTests.cpp: +Message.tests.cpp: Message from section two -MessageTests.cpp: +Message.tests.cpp: @@ -486,18 +486,18 @@ MessageTests.cpp: -DecompositionTests.cpp: +Decomposition.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: @@ -528,10 +528,10 @@ Message from section two -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: @@ -540,7 +540,7 @@ MatchersTests.cpp: -StringRef.tests.cpp: +String.tests.cpp: @@ -567,7 +567,7 @@ StringRef.tests.cpp: $a = 20; } "" type="CHECK"> -MiscTests.cpp: +Misc.tests.cpp: @@ -596,7 +596,7 @@ MiscTests.cpp: 3.14 -ExceptionTests.cpp: +Exception.tests.cpp: @@ -607,63 +607,63 @@ ExceptionTests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: -MatchersTests.cpp: +Matchers.tests.cpp: unexpected exception -ExceptionTests.cpp: +Exception.tests.cpp: expected exception -ExceptionTests.cpp: +Exception.tests.cpp: expected exception -ExceptionTests.cpp: +Exception.tests.cpp: expected exception -ExceptionTests.cpp: +Exception.tests.cpp: unexpected exception -ExceptionTests.cpp: +Exception.tests.cpp: @@ -685,19 +685,19 @@ ExceptionTests.cpp: -MiscTests.cpp: +Misc.tests.cpp: -MiscTests.cpp: +Misc.tests.cpp: -MiscTests.cpp: +Misc.tests.cpp: -MiscTests.cpp: +Misc.tests.cpp: @@ -708,44 +708,44 @@ MiscTests.cpp: Previous info should not be seen -MessageTests.cpp: +Message.tests.cpp: -MiscTests.cpp: +Misc.tests.cpp: Testing if fib[0] (1) is even -MiscTests.cpp: +Misc.tests.cpp: Testing if fib[1] (1) is even -MiscTests.cpp: +Misc.tests.cpp: Testing if fib[3] (3) is even -MiscTests.cpp: +Misc.tests.cpp: Testing if fib[4] (5) is even -MiscTests.cpp: +Misc.tests.cpp: Testing if fib[6] (13) is even -MiscTests.cpp: +Misc.tests.cpp: Testing if fib[7] (21) is even -MiscTests.cpp: +Misc.tests.cpp: -MiscTests.cpp: +Misc.tests.cpp: @@ -771,14 +771,14 @@ MiscTests.cpp: 3 -MiscTests.cpp: +Misc.tests.cpp: hi i := 7 -MessageTests.cpp: +Message.tests.cpp: @@ -786,7 +786,7 @@ MessageTests.cpp: -TrickyTests.cpp: +Tricky.tests.cpp: @@ -800,10 +800,10 @@ TrickyTests.cpp: -EnumToString.cpp: +EnumToString.tests.cpp: -EnumToString.cpp: +EnumToString.tests.cpp: diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt index 7fb1c6b4..bbd769fb 100644 --- a/projects/SelfTest/Baselines/xml.sw.approved.txt +++ b/projects/SelfTest/Baselines/xml.sw.approved.txt @@ -1,11 +1,11 @@ - + - - + + fptr == 0 @@ -13,7 +13,7 @@ 0 == 0 - + fptr == 0l @@ -23,8 +23,8 @@ - - + + y.v == 0 @@ -32,7 +32,7 @@ 0 == 0 - + 0 == y.v @@ -42,38 +42,38 @@ - -
+ +
answer := 42 - + expected exception
-
+
answer := 42 - + thisThrows() thisThrows() - + expected exception
-
+
answer := 42 - + thisThrows() @@ -85,8 +85,8 @@
- - + + 42 == f @@ -96,8 +96,8 @@ - - + + a == t @@ -105,7 +105,7 @@ 3 == 3 - + a == t @@ -113,7 +113,7 @@ 3 == 3 - + throws_int(true) @@ -121,7 +121,7 @@ throws_int(true) - + throws_int(true), int @@ -129,7 +129,7 @@ throws_int(true), int - + throws_int(false) @@ -137,7 +137,7 @@ throws_int(false) - + "aaa", Catch::EndsWith("aaa") @@ -145,7 +145,7 @@ "aaa" ends with: "aaa" - + templated_tests<int>(3) @@ -155,8 +155,8 @@ - - + + f() == 0 @@ -164,7 +164,7 @@ 1 == 0 - + errno == 1 @@ -174,11 +174,11 @@ - + dummy := 0 - + x == 4 @@ -188,26 +188,26 @@ - -
+ +
-
+
-
+
-
+
-
+
- - + + false != false @@ -215,7 +215,7 @@ false != false - + true != true @@ -223,7 +223,7 @@ true != true - + !true @@ -231,7 +231,7 @@ false - + !(true) @@ -239,7 +239,7 @@ !true - + !trueValue @@ -247,7 +247,7 @@ false - + !(trueValue) @@ -255,7 +255,7 @@ !true - + !(1 == 1) @@ -263,7 +263,7 @@ false - + !(1 == 1) @@ -273,8 +273,8 @@ - - + + false == false @@ -282,7 +282,7 @@ false == false - + true == true @@ -290,7 +290,7 @@ true == true - + !false @@ -298,7 +298,7 @@ true - + !(false) @@ -306,7 +306,7 @@ !false - + !falseValue @@ -314,7 +314,7 @@ true - + !(falseValue) @@ -322,7 +322,7 @@ !false - + !(1 == 2) @@ -330,7 +330,7 @@ true - + !(1 == 2) @@ -340,9 +340,9 @@ - -
- + +
+ is_true<true>::value == true @@ -350,7 +350,7 @@ true == true - + true == is_true<true>::value @@ -360,8 +360,8 @@
-
- +
+ is_true<false>::value == false @@ -369,7 +369,7 @@ false == false - + false == is_true<false>::value @@ -379,8 +379,8 @@
-
- +
+ !is_true<false>::value @@ -390,8 +390,8 @@
-
- +
+ !!is_true<true>::value @@ -401,8 +401,8 @@
-
- +
+ is_true<true>::value @@ -410,7 +410,7 @@ true - + !(is_true<false>::value) @@ -422,8 +422,8 @@
- - + + s == "world" @@ -433,8 +433,8 @@ - - + + s == "hello" @@ -444,8 +444,8 @@ - - + + m_a == 2 @@ -455,8 +455,8 @@ - - + + m_a == 1 @@ -466,20 +466,20 @@ - -
-
+ +
+
- + to infinity and beyond
- - + + &o1 == &o2 @@ -487,7 +487,7 @@ 0x == 0x - + o1 == o2 @@ -497,8 +497,8 @@ - - + + 104.0 != Approx(100.0) @@ -506,7 +506,7 @@ 104.0 != Approx( 100.0 ) - + 104.0 == Approx(100.0).margin(5) @@ -514,7 +514,7 @@ 104.0 == Approx( 100.0 ) - + 104.0 == Approx(100.0).margin(4) @@ -522,7 +522,7 @@ 104.0 == Approx( 100.0 ) - + 104.0 != Approx(100.0).margin(3) @@ -530,7 +530,7 @@ 104.0 != Approx( 100.0 ) - + 100.3 != Approx(100.0) @@ -538,7 +538,7 @@ 100.3 != Approx( 100.0 ) - + 100.3 == Approx(100.0).margin(0.5) @@ -548,11 +548,11 @@ - + - - + + i++ == 7 @@ -560,7 +560,7 @@ 7 == 7 - + i++ == 8 @@ -570,8 +570,8 @@ - - + + 1 == 1 @@ -579,24 +579,24 @@ 1 == 1 - + {Unknown expression after the reported line} {Unknown expression after the reported line} - + unexpected exception - + - - + + Approx(0).margin(0) @@ -604,7 +604,7 @@ Approx(0).margin(0) - + Approx(0).margin(1234656) @@ -612,7 +612,7 @@ Approx(0).margin(1234656) - + Approx(0).margin(-2), std::domain_error @@ -620,7 +620,7 @@ Approx(0).margin(-2), std::domain_error - + Approx(0).epsilon(0) @@ -628,7 +628,7 @@ Approx(0).epsilon(0) - + Approx(0).epsilon(1) @@ -636,7 +636,7 @@ Approx(0).epsilon(1) - + Approx(0).epsilon(-0.001), std::domain_error @@ -644,7 +644,7 @@ Approx(0).epsilon(-0.001), std::domain_error - + Approx(0).epsilon(1.0001), std::domain_error @@ -654,8 +654,8 @@ - - + + 0.25f == Approx(0.0f).margin(0.25f) @@ -663,7 +663,7 @@ 0.25f == Approx( 0.0 ) - + 0.0f == Approx(0.25f).margin(0.25f) @@ -671,7 +671,7 @@ 0.0f == Approx( 0.25 ) - + 0.5f == Approx(0.25f).margin(0.25f) @@ -679,7 +679,7 @@ 0.5f == Approx( 0.25 ) - + 245.0f == Approx(245.25f).margin(0.25f) @@ -687,7 +687,7 @@ 245.0f == Approx( 245.25 ) - + 245.5f == Approx(245.25f).margin(0.25f) @@ -697,8 +697,8 @@ - - + + divide( 22, 7 ) == Approx( 3.141 ).epsilon( 0.001 ) @@ -706,7 +706,7 @@ 3.1428571429 == Approx( 3.141 ) - + divide( 22, 7 ) != Approx( 3.141 ).epsilon( 0.0001 ) @@ -716,8 +716,8 @@ - - + + d != Approx( 1.231 ) @@ -725,7 +725,7 @@ 1.23 != Approx( 1.231 ) - + d == Approx( 1.231 ).epsilon( 0.1 ) @@ -735,8 +735,8 @@ - - + + 1.23f == Approx( 1.23f ) @@ -744,7 +744,7 @@ 1.23f == Approx( 1.2300000191 ) - + 0.0f == Approx( 0.0f ) @@ -754,8 +754,8 @@ - - + + 1 == Approx( 1 ) @@ -763,7 +763,7 @@ 1 == Approx( 1.0 ) - + 0 == Approx( 0 ) @@ -773,8 +773,8 @@ - - + + 1.0f == Approx( 1 ) @@ -782,7 +782,7 @@ 1.0f == Approx( 1.0 ) - + 0 == Approx( dZero) @@ -790,7 +790,7 @@ 0 == Approx( 0.0 ) - + 0 == Approx( dSmall ).margin( 0.001 ) @@ -798,7 +798,7 @@ 0 == Approx( 0.00001 ) - + 1.234f == Approx( dMedium ) @@ -806,7 +806,7 @@ 1.234f == Approx( 1.234 ) - + dMedium == Approx( 1.234f ) @@ -816,8 +816,8 @@ - - + + Catch::alwaysTrue() @@ -825,8 +825,8 @@ true -
- +
+ Catch::alwaysTrue() @@ -834,8 +834,8 @@ true -
- +
+ Catch::alwaysTrue() @@ -847,7 +847,7 @@
- + Catch::alwaysTrue() @@ -855,8 +855,8 @@ true -
- +
+ Catch::alwaysTrue() @@ -864,8 +864,8 @@ true -
- +
+ Catch::alwaysTrue() @@ -879,8 +879,8 @@
- - + + INFINITY == Approx(INFINITY) @@ -888,7 +888,7 @@ inff == Approx( inf ) - + NAN != Approx(NAN) @@ -896,7 +896,7 @@ nanf != Approx( nan ) - + !(NAN == Approx(NAN)) @@ -906,8 +906,8 @@ - - + + y.v == 0 @@ -915,7 +915,7 @@ 0 == 0 - + 0 == y.v @@ -925,12 +925,12 @@ - -
+ +
i := 2 - + true @@ -940,11 +940,11 @@
-
+
3 - + true @@ -956,9 +956,9 @@
- -
- + +
+ tab == '\t' @@ -966,7 +966,7 @@ '\t' == '\t' - + newline == '\n' @@ -974,7 +974,7 @@ '\n' == '\n' - + carr_return == '\r' @@ -982,7 +982,7 @@ '\r' == '\r' - + form_feed == '\f' @@ -992,8 +992,8 @@
-
- +
+ space == ' ' @@ -1001,7 +1001,7 @@ ' ' == ' ' - + c == chars[i] @@ -1009,7 +1009,7 @@ 'a' == 'a' - + c == chars[i] @@ -1017,7 +1017,7 @@ 'z' == 'z' - + c == chars[i] @@ -1025,7 +1025,7 @@ 'A' == 'A' - + c == chars[i] @@ -1035,8 +1035,8 @@
-
- +
+ null_terminator == '\0' @@ -1044,7 +1044,7 @@ 0 == 0 - + c == i @@ -1052,7 +1052,7 @@ 2 == 2 - + c == i @@ -1060,7 +1060,7 @@ 3 == 3 - + c == i @@ -1068,7 +1068,7 @@ 4 == 4 - + c == i @@ -1080,8 +1080,8 @@
- - + + std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} @@ -1089,7 +1089,7 @@ std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} - + std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} @@ -1097,7 +1097,7 @@ std::vector<constructor_throws>{constructor_throws{}, constructor_throws{}} - + std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} @@ -1105,7 +1105,7 @@ std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} - + std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} @@ -1113,7 +1113,7 @@ std::vector<int>{1, 2, 3} == std::vector<int>{1, 2, 3} - + std::vector<int>{1, 2} == std::vector<int>{1, 2} @@ -1121,7 +1121,7 @@ { 1, 2 } == { 1, 2 } - + std::vector<int>{1, 2} == std::vector<int>{1, 2} @@ -1129,7 +1129,7 @@ { 1, 2 } == { 1, 2 } - + !(std::vector<int>{1, 2} == std::vector<int>{1, 2, 3}) @@ -1137,7 +1137,7 @@ !({ 1, 2 } == { 1, 2, 3 }) - + !(std::vector<int>{1, 2} == std::vector<int>{1, 2, 3}) @@ -1145,7 +1145,7 @@ !({ 1, 2 } == { 1, 2, 3 }) - + std::vector<int>{1, 2} == std::vector<int>{1, 2} @@ -1153,7 +1153,7 @@ { 1, 2 } == { 1, 2 } - + std::vector<int>{1, 2} == std::vector<int>{1, 2} @@ -1161,7 +1161,7 @@ { 1, 2 } == { 1, 2 } - + true @@ -1169,7 +1169,7 @@ true - + std::vector<int>{1, 2} == std::vector<int>{1, 2} @@ -1179,8 +1179,8 @@ - - + + a @@ -1188,7 +1188,7 @@ 0x - + a == &foo @@ -1198,8 +1198,8 @@ - - + + td == Approx(10.0) @@ -1207,7 +1207,7 @@ StrongDoubleTypedef(10) == Approx( 10.0 ) - + Approx(10.0) == td @@ -1215,7 +1215,7 @@ Approx( 10.0 ) == StrongDoubleTypedef(10) - + td != Approx(11.0) @@ -1223,7 +1223,7 @@ StrongDoubleTypedef(10) != Approx( 11.0 ) - + Approx(11.0) != td @@ -1231,7 +1231,7 @@ Approx( 11.0 ) != StrongDoubleTypedef(10) - + td <= Approx(10.0) @@ -1239,7 +1239,7 @@ StrongDoubleTypedef(10) <= Approx( 10.0 ) - + td <= Approx(11.0) @@ -1247,7 +1247,7 @@ StrongDoubleTypedef(10) <= Approx( 11.0 ) - + Approx(10.0) <= td @@ -1255,7 +1255,7 @@ Approx( 10.0 ) <= StrongDoubleTypedef(10) - + Approx(9.0) <= td @@ -1263,7 +1263,7 @@ Approx( 9.0 ) <= StrongDoubleTypedef(10) - + td >= Approx(9.0) @@ -1271,7 +1271,7 @@ StrongDoubleTypedef(10) >= Approx( 9.0 ) - + td >= Approx(10.0) @@ -1279,7 +1279,7 @@ StrongDoubleTypedef(10) >= Approx( 10.0 ) - + Approx(10.0) >= td @@ -1287,7 +1287,7 @@ Approx( 10.0 ) >= StrongDoubleTypedef(10) - + Approx(11.0) >= td @@ -1297,8 +1297,8 @@ - - + + 54 == 6*9 @@ -1308,8 +1308,8 @@ - - + + ( -1 > 2u ) @@ -1317,7 +1317,7 @@ true - + -1 > 2u @@ -1325,7 +1325,7 @@ -1 > 2 - + ( 2u < -1 ) @@ -1333,7 +1333,7 @@ true - + 2u < -1 @@ -1341,7 +1341,7 @@ 2 < -1 - + ( minInt > 2u ) @@ -1349,7 +1349,7 @@ true - + minInt > 2u @@ -1359,8 +1359,8 @@ - - + + i == 1 @@ -1368,7 +1368,7 @@ 1 == 1 - + ui == 2 @@ -1376,7 +1376,7 @@ 2 == 2 - + l == 3 @@ -1384,7 +1384,7 @@ 3 == 3 - + ul == 4 @@ -1392,7 +1392,7 @@ 4 == 4 - + c == 5 @@ -1400,7 +1400,7 @@ 5 == 5 - + uc == 6 @@ -1408,7 +1408,7 @@ 6 == 6 - + 1 == i @@ -1416,7 +1416,7 @@ 1 == 1 - + 2 == ui @@ -1424,7 +1424,7 @@ 2 == 2 - + 3 == l @@ -1432,7 +1432,7 @@ 3 == 3 - + 4 == ul @@ -1440,7 +1440,7 @@ 4 == 4 - + 5 == c @@ -1448,7 +1448,7 @@ 5 == 5 - + 6 == uc @@ -1456,7 +1456,7 @@ 6 == 6 - + (std::numeric_limits<uint32_t>::max)() > ul @@ -1466,8 +1466,8 @@ - - + + testStringForMatching(), Contains( "not there", Catch::CaseSensitive::No ) @@ -1475,7 +1475,7 @@ "this string contains 'abc' as a substring" contains: "not there" (case insensitive) - + testStringForMatching(), Contains( "STRING" ) @@ -1485,42 +1485,42 @@ - - + + throwCustom() throwCustom() - + custom exception - not std - - + + throwCustom(), std::exception throwCustom(), std::exception - + custom exception - not std - - + + custom std exception - - + + 101.000001 != Approx(100).epsilon(0.01) @@ -1528,7 +1528,7 @@ 101.000001 != Approx( 100.0 ) - + std::pow(10, -5) != Approx(std::pow(10, -7)) @@ -1538,8 +1538,8 @@ - - + + testStringForMatching(), EndsWith( "Substring" ) @@ -1547,7 +1547,7 @@ "this string contains 'abc' as a substring" ends with: "Substring" - + testStringForMatching(), EndsWith( "this", Catch::CaseSensitive::No ) @@ -1557,8 +1557,8 @@ - - + + 101.01 != Approx(100).epsilon(0.01) @@ -1568,8 +1568,8 @@ - - + + data.int_seven == 6 @@ -1577,7 +1577,7 @@ 7 == 6 - + data.int_seven == 8 @@ -1585,7 +1585,7 @@ 7 == 8 - + data.int_seven == 0 @@ -1593,7 +1593,7 @@ 7 == 0 - + data.float_nine_point_one == Approx( 9.11f ) @@ -1601,7 +1601,7 @@ 9.1f == Approx( 9.1099996567 ) - + data.float_nine_point_one == Approx( 9.0f ) @@ -1609,7 +1609,7 @@ 9.1f == Approx( 9.0 ) - + data.float_nine_point_one == Approx( 1 ) @@ -1617,7 +1617,7 @@ 9.1f == Approx( 1.0 ) - + data.float_nine_point_one == Approx( 0 ) @@ -1625,7 +1625,7 @@ 9.1f == Approx( 0.0 ) - + data.double_pi == Approx( 3.1415 ) @@ -1633,7 +1633,7 @@ 3.1415926535 == Approx( 3.1415 ) - + data.str_hello == "goodbye" @@ -1641,7 +1641,7 @@ "hello" == "goodbye" - + data.str_hello == "hell" @@ -1649,7 +1649,7 @@ "hello" == "hell" - + data.str_hello == "hello1" @@ -1657,7 +1657,7 @@ "hello" == "hello1" - + data.str_hello.size() == 6 @@ -1665,7 +1665,7 @@ 5 == 6 - + x == Approx( 1.301 ) @@ -1675,8 +1675,8 @@ - - + + data.int_seven == 7 @@ -1684,7 +1684,7 @@ 7 == 7 - + data.float_nine_point_one == Approx( 9.1f ) @@ -1692,7 +1692,7 @@ 9.1f == Approx( 9.1000003815 ) - + data.double_pi == Approx( 3.1415926535 ) @@ -1700,7 +1700,7 @@ 3.1415926535 == Approx( 3.1415926535 ) - + data.str_hello == "hello" @@ -1708,7 +1708,7 @@ "hello" == "hello" - + "hello" == data.str_hello @@ -1716,7 +1716,7 @@ "hello" == "hello" - + data.str_hello.size() == 5 @@ -1724,7 +1724,7 @@ 5 == 5 - + x == Approx( 1.3 ) @@ -1734,8 +1734,8 @@ - - + + testStringForMatching(), Equals( "this string contains 'abc' as a substring" ) @@ -1743,7 +1743,7 @@ "this string contains 'abc' as a substring" equals: "this string contains 'abc' as a substring" - + testStringForMatching(), Equals( "this string contains 'ABC' as a substring", Catch::CaseSensitive::No ) @@ -1753,8 +1753,8 @@ - - + + testStringForMatching(), Equals( "this string contains 'ABC' as a substring" ) @@ -1762,7 +1762,7 @@ "this string contains 'abc' as a substring" equals: "this string contains 'ABC' as a substring" - + testStringForMatching(), Equals( "something else", Catch::CaseSensitive::No ) @@ -1772,9 +1772,9 @@ - -
- + +
+ doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } @@ -1782,7 +1782,7 @@ doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } - + doesNotThrow(), SpecialException, ExceptionMatcher{ 1 } @@ -1792,33 +1792,33 @@
-
- +
+ throwsAsInt(1), SpecialException, ExceptionMatcher{ 1 } throwsAsInt(1), SpecialException, ExceptionMatcher{ 1 } - + Unknown exception - + throwsAsInt(1), SpecialException, ExceptionMatcher{ 1 } throwsAsInt(1), SpecialException, ExceptionMatcher{ 1 } - + Unknown exception
-
- +
+ throws(3), SpecialException, ExceptionMatcher{ 1 } @@ -1826,7 +1826,7 @@ {?} special exception has value of 1 - + throws(4), SpecialException, ExceptionMatcher{ 1 } @@ -1838,8 +1838,8 @@
- - + + throws(1), SpecialException, ExceptionMatcher{ 1 } @@ -1847,7 +1847,7 @@ {?} special exception has value of 1 - + throws(2), SpecialException, ExceptionMatcher{ 2 } @@ -1857,9 +1857,9 @@ - -
- + +
+ thisThrows(), "expected exception" @@ -1869,8 +1869,8 @@
-
- +
+ thisThrows(), Equals( "expecteD Exception", Catch::CaseSensitive::No ) @@ -1880,8 +1880,8 @@
-
- +
+ thisThrows(), StartsWith( "expected" ) @@ -1889,7 +1889,7 @@ "expected exception" starts with: "expected" - + thisThrows(), EndsWith( "exception" ) @@ -1897,7 +1897,7 @@ "expected exception" ends with: "exception" - + thisThrows(), Contains( "except" ) @@ -1905,7 +1905,7 @@ "expected exception" contains: "except" - + thisThrows(), Contains( "exCept", Catch::CaseSensitive::No ) @@ -1917,19 +1917,19 @@
- - + + thisThrows(), std::string thisThrows(), std::string - + expected exception - + thisDoesntThrow(), std::domain_error @@ -1937,31 +1937,31 @@ thisDoesntThrow(), std::domain_error - + thisThrows() thisThrows() - + expected exception - - + + This is a failure - - + + - - + + This is a failure @@ -1969,8 +1969,8 @@ - - + + Factorial(0) == 1 @@ -1978,7 +1978,7 @@ 1 == 1 - + Factorial(1) == 1 @@ -1986,7 +1986,7 @@ 1 == 1 - + Factorial(2) == 2 @@ -1994,7 +1994,7 @@ 2 == 2 - + Factorial(3) == 6 @@ -2002,7 +2002,7 @@ 6 == 6 - + Factorial(10) == 3628800 @@ -2012,9 +2012,9 @@ - -
- + +
+ 1., WithinAbs(1., 0) @@ -2022,7 +2022,7 @@ 1.0 is within 0.0 of 1.0 - + 0., WithinAbs(1., 1) @@ -2030,7 +2030,7 @@ 0.0 is within 1.0 of 1.0 - + 0., !WithinAbs(1., 0.99) @@ -2038,7 +2038,7 @@ 0.0 not is within 0.99 of 1.0 - + 0., !WithinAbs(1., 0.99) @@ -2046,7 +2046,7 @@ 0.0 not is within 0.99 of 1.0 - + NAN, !WithinAbs(NAN, 0) @@ -2056,8 +2056,8 @@
-
- +
+ 1., WithinULP(1., 0) @@ -2065,7 +2065,7 @@ 1.0 is within 0 ULPs of 1.0 - + std::nextafter(1., 2.), WithinULP(1., 1) @@ -2073,7 +2073,7 @@ 1.0 is within 1 ULPs of 1.0 - + std::nextafter(1., 0.), WithinULP(1., 1) @@ -2081,7 +2081,7 @@ 1.0 is within 1 ULPs of 1.0 - + std::nextafter(1., 2.), !WithinULP(1., 0) @@ -2089,7 +2089,7 @@ 1.0 not is within 0 ULPs of 1.0 - + 1., WithinULP(1., 0) @@ -2097,7 +2097,7 @@ 1.0 is within 0 ULPs of 1.0 - + -0., WithinULP(0., 0) @@ -2105,7 +2105,7 @@ -0.0 is within 0 ULPs of 0.0 - + NAN, !WithinULP(NAN, 123) @@ -2115,8 +2115,8 @@
-
- +
+ 1., WithinAbs(1., 0.5) || WithinULP(2., 1) @@ -2124,7 +2124,7 @@ 1.0 ( is within 0.5 of 1.0 or is within 1 ULPs of 2.0 ) - + 1., WithinAbs(2., 0.5) || WithinULP(1., 0) @@ -2132,7 +2132,7 @@ 1.0 ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0 ) - + NAN, !(WithinAbs(NAN, 100) || WithinULP(NAN, 123)) @@ -2144,9 +2144,9 @@
- -
- + +
+ 1.f, WithinAbs(1.f, 0) @@ -2154,7 +2154,7 @@ 1.0f is within 0.0 of 1.0 - + 0.f, WithinAbs(1.f, 1) @@ -2162,7 +2162,7 @@ 0.0f is within 1.0 of 1.0 - + 0.f, !WithinAbs(1.f, 0.99f) @@ -2170,7 +2170,7 @@ 0.0f not is within 0.9900000095 of 1.0 - + 0.f, !WithinAbs(1.f, 0.99f) @@ -2178,7 +2178,7 @@ 0.0f not is within 0.9900000095 of 1.0 - + 0.f, WithinAbs(-0.f, 0) @@ -2186,7 +2186,7 @@ 0.0f is within 0.0 of -0.0 - + NAN, !WithinAbs(NAN, 0) @@ -2196,8 +2196,8 @@
-
- +
+ 1.f, WithinULP(1.f, 0) @@ -2205,7 +2205,7 @@ 1.0f is within 0 ULPs of 1.0f - + std::nextafter(1.f, 2.f), WithinULP(1.f, 1) @@ -2213,7 +2213,7 @@ 1.0f is within 1 ULPs of 1.0f - + std::nextafter(1.f, 0.f), WithinULP(1.f, 1) @@ -2221,7 +2221,7 @@ 1.0f is within 1 ULPs of 1.0f - + std::nextafter(1.f, 2.f), !WithinULP(1.f, 0) @@ -2229,7 +2229,7 @@ 1.0f not is within 0 ULPs of 1.0f - + 1.f, WithinULP(1.f, 0) @@ -2237,7 +2237,7 @@ 1.0f is within 0 ULPs of 1.0f - + -0.f, WithinULP(0.f, 0) @@ -2245,7 +2245,7 @@ -0.0f is within 0 ULPs of 0.0f - + NAN, !WithinULP(NAN, 123) @@ -2255,8 +2255,8 @@
-
- +
+ 1.f, WithinAbs(1.f, 0.5) || WithinULP(1.f, 1) @@ -2264,7 +2264,7 @@ 1.0f ( is within 0.5 of 1.0 or is within 1 ULPs of 1.0f ) - + 1.f, WithinAbs(2.f, 0.5) || WithinULP(1.f, 0) @@ -2272,7 +2272,7 @@ 1.0f ( is within 0.5 of 2.0 or is within 0 ULPs of 1.0f ) - + NAN, !(WithinAbs(NAN, 100) || WithinULP(NAN, 123)) @@ -2284,8 +2284,8 @@
- - + + d >= Approx( 1.22 ) @@ -2293,7 +2293,7 @@ 1.23 >= Approx( 1.22 ) - + d >= Approx( 1.23 ) @@ -2301,7 +2301,7 @@ 1.23 >= Approx( 1.23 ) - + !(d >= Approx( 1.24 )) @@ -2309,7 +2309,7 @@ !(1.23 >= Approx( 1.24 )) - + d >= Approx( 1.24 ).epsilon(0.1) @@ -2319,7 +2319,7 @@ - + this is a message @@ -2328,14 +2328,14 @@ - + this message should be logged so should this - + a == 1 @@ -2345,11 +2345,11 @@ - + this message may be logged later - + a == 2 @@ -2363,7 +2363,7 @@ this message should be logged - + a == 1 @@ -2380,7 +2380,7 @@ and this, but later - + a == 0 @@ -2400,7 +2400,7 @@ but not this - + a == 2 @@ -2410,14 +2410,14 @@ - + current counter 0 i := 0 - + i < 10 @@ -2431,7 +2431,7 @@ i := 1 - + i < 10 @@ -2445,7 +2445,7 @@ i := 2 - + i < 10 @@ -2459,7 +2459,7 @@ i := 3 - + i < 10 @@ -2473,7 +2473,7 @@ i := 4 - + i < 10 @@ -2487,7 +2487,7 @@ i := 5 - + i < 10 @@ -2501,7 +2501,7 @@ i := 6 - + i < 10 @@ -2515,7 +2515,7 @@ i := 7 - + i < 10 @@ -2529,7 +2529,7 @@ i := 8 - + i < 10 @@ -2543,7 +2543,7 @@ i := 9 - + i < 10 @@ -2557,7 +2557,7 @@ i := 10 - + i < 10 @@ -2567,8 +2567,8 @@ - - + + data.int_seven != 7 @@ -2576,7 +2576,7 @@ 7 != 7 - + data.float_nine_point_one != Approx( 9.1f ) @@ -2584,7 +2584,7 @@ 9.1f != Approx( 9.1000003815 ) - + data.double_pi != Approx( 3.1415926535 ) @@ -2592,7 +2592,7 @@ 3.1415926535 != Approx( 3.1415926535 ) - + data.str_hello != "hello" @@ -2600,7 +2600,7 @@ "hello" != "hello" - + data.str_hello.size() != 5 @@ -2610,8 +2610,8 @@ - - + + data.int_seven != 6 @@ -2619,7 +2619,7 @@ 7 != 6 - + data.int_seven != 8 @@ -2627,7 +2627,7 @@ 7 != 8 - + data.float_nine_point_one != Approx( 9.11f ) @@ -2635,7 +2635,7 @@ 9.1f != Approx( 9.1099996567 ) - + data.float_nine_point_one != Approx( 9.0f ) @@ -2643,7 +2643,7 @@ 9.1f != Approx( 9.0 ) - + data.float_nine_point_one != Approx( 1 ) @@ -2651,7 +2651,7 @@ 9.1f != Approx( 1.0 ) - + data.float_nine_point_one != Approx( 0 ) @@ -2659,7 +2659,7 @@ 9.1f != Approx( 0.0 ) - + data.double_pi != Approx( 3.1415 ) @@ -2667,7 +2667,7 @@ 3.1415926535 != Approx( 3.1415 ) - + data.str_hello != "goodbye" @@ -2675,7 +2675,7 @@ "hello" != "goodbye" - + data.str_hello != "hell" @@ -2683,7 +2683,7 @@ "hello" != "hell" - + data.str_hello != "hello1" @@ -2691,7 +2691,7 @@ "hello" != "hello1" - + data.str_hello.size() != 6 @@ -2701,8 +2701,8 @@ - - + + d <= Approx( 1.24 ) @@ -2710,7 +2710,7 @@ 1.23 <= Approx( 1.24 ) - + d <= Approx( 1.23 ) @@ -2718,7 +2718,7 @@ 1.23 <= Approx( 1.23 ) - + !(d <= Approx( 1.22 )) @@ -2726,7 +2726,7 @@ !(1.23 <= Approx( 1.22 )) - + d <= Approx( 1.22 ).epsilon(0.1) @@ -2736,11 +2736,11 @@ - + - - + + testStringForMatching(), Contains( "string" ) && Contains( "abc" ) && Contains( "substring" ) && Contains( "contains" ) @@ -2750,8 +2750,8 @@ - - + + testStringForMatching(), Contains( "string" ) || Contains( "different" ) || Contains( "random" ) @@ -2759,7 +2759,7 @@ "this string contains 'abc' as a substring" ( contains: "string" or contains: "different" or contains: "random" ) - + testStringForMatching2(), Contains( "string" ) || Contains( "different" ) || Contains( "random" ) @@ -2769,8 +2769,8 @@ - - + + testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "substring" ) @@ -2780,8 +2780,8 @@ - - + + testStringForMatching(), ( Contains( "string" ) || Contains( "different" ) ) && Contains( "random" ) @@ -2791,8 +2791,8 @@ - - + + testStringForMatching(), !Contains( "different" ) @@ -2802,8 +2802,8 @@ - - + + testStringForMatching(), !Contains( "substring" ) @@ -2813,8 +2813,8 @@ - - + + thisThrows(), "expected exception" @@ -2822,7 +2822,7 @@ "expected exception" equals: "expected exception" - + thisThrows(), "should fail" @@ -2832,20 +2832,20 @@ - + This one ran - - + + custom exception - - + + True @@ -2853,7 +2853,7 @@ {?} - + !False @@ -2861,7 +2861,7 @@ true - + !(False) @@ -2871,8 +2871,8 @@ - - + + data.int_seven > 7 @@ -2880,7 +2880,7 @@ 7 > 7 - + data.int_seven < 7 @@ -2888,7 +2888,7 @@ 7 < 7 - + data.int_seven > 8 @@ -2896,7 +2896,7 @@ 7 > 8 - + data.int_seven < 6 @@ -2904,7 +2904,7 @@ 7 < 6 - + data.int_seven < 0 @@ -2912,7 +2912,7 @@ 7 < 0 - + data.int_seven < -1 @@ -2920,7 +2920,7 @@ 7 < -1 - + data.int_seven >= 8 @@ -2928,7 +2928,7 @@ 7 >= 8 - + data.int_seven <= 6 @@ -2936,7 +2936,7 @@ 7 <= 6 - + data.float_nine_point_one < 9 @@ -2944,7 +2944,7 @@ 9.1f < 9 - + data.float_nine_point_one > 10 @@ -2952,7 +2952,7 @@ 9.1f > 10 - + data.float_nine_point_one > 9.2 @@ -2960,7 +2960,7 @@ 9.1f > 9.2 - + data.str_hello > "hello" @@ -2968,7 +2968,7 @@ "hello" > "hello" - + data.str_hello < "hello" @@ -2976,7 +2976,7 @@ "hello" < "hello" - + data.str_hello > "hellp" @@ -2984,7 +2984,7 @@ "hello" > "hellp" - + data.str_hello > "z" @@ -2992,7 +2992,7 @@ "hello" > "z" - + data.str_hello < "hellm" @@ -3000,7 +3000,7 @@ "hello" < "hellm" - + data.str_hello < "a" @@ -3008,7 +3008,7 @@ "hello" < "a" - + data.str_hello >= "z" @@ -3016,7 +3016,7 @@ "hello" >= "z" - + data.str_hello <= "a" @@ -3026,8 +3026,8 @@ - - + + data.int_seven < 8 @@ -3035,7 +3035,7 @@ 7 < 8 - + data.int_seven > 6 @@ -3043,7 +3043,7 @@ 7 > 6 - + data.int_seven > 0 @@ -3051,7 +3051,7 @@ 7 > 0 - + data.int_seven > -1 @@ -3059,7 +3059,7 @@ 7 > -1 - + data.int_seven >= 7 @@ -3067,7 +3067,7 @@ 7 >= 7 - + data.int_seven >= 6 @@ -3075,7 +3075,7 @@ 7 >= 6 - + data.int_seven <= 7 @@ -3083,7 +3083,7 @@ 7 <= 7 - + data.int_seven <= 8 @@ -3091,7 +3091,7 @@ 7 <= 8 - + data.float_nine_point_one > 9 @@ -3099,7 +3099,7 @@ 9.1f > 9 - + data.float_nine_point_one < 10 @@ -3107,7 +3107,7 @@ 9.1f < 10 - + data.float_nine_point_one < 9.2 @@ -3115,7 +3115,7 @@ 9.1f < 9.2 - + data.str_hello <= "hello" @@ -3123,7 +3123,7 @@ "hello" <= "hello" - + data.str_hello >= "hello" @@ -3131,7 +3131,7 @@ "hello" >= "hello" - + data.str_hello < "hellp" @@ -3139,7 +3139,7 @@ "hello" < "hellp" - + data.str_hello < "zebra" @@ -3147,7 +3147,7 @@ "hello" < "zebra" - + data.str_hello > "hellm" @@ -3155,7 +3155,7 @@ "hello" > "hellm" - + data.str_hello > "a" @@ -3165,24 +3165,24 @@ - -
- + +
+ Message from section one
-
- +
+ Message from section two
- -
- + +
+ spec.hasFilters() == false @@ -3190,7 +3190,7 @@ false == false - + spec.matches( tcA ) == false @@ -3198,7 +3198,7 @@ false == false - + spec.matches( tcB ) == false @@ -3208,8 +3208,8 @@
-
- +
+ spec.hasFilters() == false @@ -3217,7 +3217,7 @@ false == false - + spec.matches(tcA ) == false @@ -3225,7 +3225,7 @@ false == false - + spec.matches( tcB ) == false @@ -3235,8 +3235,8 @@
-
- +
+ spec.hasFilters() == false @@ -3244,7 +3244,7 @@ false == false - + spec.matches( tcA ) == false @@ -3252,7 +3252,7 @@ false == false - + spec.matches( tcB ) == false @@ -3262,8 +3262,8 @@
-
- +
+ spec.hasFilters() == true @@ -3271,7 +3271,7 @@ true == true - + spec.matches( tcA ) == false @@ -3279,7 +3279,7 @@ false == false - + spec.matches( tcB ) == true @@ -3289,8 +3289,8 @@
-
- +
+ spec.hasFilters() == true @@ -3298,7 +3298,7 @@ true == true - + spec.matches( tcA ) == false @@ -3306,7 +3306,7 @@ false == false - + spec.matches( tcB ) == true @@ -3316,8 +3316,8 @@
-
- +
+ spec.hasFilters() == true @@ -3325,7 +3325,7 @@ true == true - + spec.matches( tcA ) == false @@ -3333,7 +3333,7 @@ false == false - + spec.matches( tcB ) == true @@ -3341,7 +3341,7 @@ true == true - + spec.matches( tcC ) == false @@ -3351,8 +3351,8 @@
-
- +
+ spec.hasFilters() == true @@ -3360,7 +3360,7 @@ true == true - + spec.matches( tcA ) == false @@ -3368,7 +3368,7 @@ false == false - + spec.matches( tcB ) == false @@ -3376,7 +3376,7 @@ false == false - + spec.matches( tcC ) == true @@ -3384,7 +3384,7 @@ true == true - + spec.matches( tcD ) == false @@ -3392,7 +3392,7 @@ false == false - + parseTestSpec( "*a" ).matches( tcA ) == true @@ -3402,8 +3402,8 @@
-
- +
+ spec.hasFilters() == true @@ -3411,7 +3411,7 @@ true == true - + spec.matches( tcA ) == false @@ -3419,7 +3419,7 @@ false == false - + spec.matches( tcB ) == false @@ -3427,7 +3427,7 @@ false == false - + spec.matches( tcC ) == true @@ -3435,7 +3435,7 @@ true == true - + spec.matches( tcD ) == false @@ -3443,7 +3443,7 @@ false == false - + parseTestSpec( "a*" ).matches( tcA ) == true @@ -3453,8 +3453,8 @@
-
- +
+ spec.hasFilters() == true @@ -3462,7 +3462,7 @@ true == true - + spec.matches( tcA ) == false @@ -3470,7 +3470,7 @@ false == false - + spec.matches( tcB ) == false @@ -3478,7 +3478,7 @@ false == false - + spec.matches( tcC ) == true @@ -3486,7 +3486,7 @@ true == true - + spec.matches( tcD ) == true @@ -3494,7 +3494,7 @@ true == true - + parseTestSpec( "*a*" ).matches( tcA ) == true @@ -3504,8 +3504,8 @@
-
- +
+ spec.hasFilters() == true @@ -3513,7 +3513,7 @@ true == true - + spec.matches( tcA ) == true @@ -3521,7 +3521,7 @@ true == true - + spec.matches( tcB ) == false @@ -3531,8 +3531,8 @@
-
- +
+ spec.hasFilters() == true @@ -3540,7 +3540,7 @@ true == true - + spec.matches( tcA ) == true @@ -3548,7 +3548,7 @@ true == true - + spec.matches( tcB ) == false @@ -3558,8 +3558,8 @@
-
- +
+ spec.hasFilters() == true @@ -3567,7 +3567,7 @@ true == true - + spec.matches( tcA ) == true @@ -3575,7 +3575,7 @@ true == true - + spec.matches( tcB ) == false @@ -3585,8 +3585,8 @@
-
- +
+ spec.hasFilters() == true @@ -3594,7 +3594,7 @@ true == true - + spec.matches( tcA ) == false @@ -3602,7 +3602,7 @@ false == false - + spec.matches( tcB ) == false @@ -3610,7 +3610,7 @@ false == false - + spec.matches( tcC ) == true @@ -3618,7 +3618,7 @@ true == true - + spec.matches( tcD ) == true @@ -3628,8 +3628,8 @@
-
- +
+ spec.hasFilters() == true @@ -3637,7 +3637,7 @@ true == true - + spec.matches( tcA ) == true @@ -3645,7 +3645,7 @@ true == true - + spec.matches( tcB ) == true @@ -3653,7 +3653,7 @@ true == true - + spec.matches( tcC ) == true @@ -3661,7 +3661,7 @@ true == true - + spec.matches( tcD ) == true @@ -3671,8 +3671,8 @@
-
- +
+ spec.hasFilters() == true @@ -3680,7 +3680,7 @@ true == true - + spec.matches( tcA ) == false @@ -3688,7 +3688,7 @@ false == false - + spec.matches( tcB ) == true @@ -3696,7 +3696,7 @@ true == true - + spec.matches( tcC ) == false @@ -3706,8 +3706,8 @@
-
- +
+ spec.hasFilters() == true @@ -3715,7 +3715,7 @@ true == true - + spec.matches( tcA ) == false @@ -3723,7 +3723,7 @@ false == false - + spec.matches( tcB ) == true @@ -3731,7 +3731,7 @@ true == true - + spec.matches( tcC ) == true @@ -3741,8 +3741,8 @@
-
- +
+ spec.hasFilters() == true @@ -3750,7 +3750,7 @@ true == true - + spec.matches( tcA ) == false @@ -3758,7 +3758,7 @@ false == false - + spec.matches( tcB ) == false @@ -3766,7 +3766,7 @@ false == false - + spec.matches( tcC ) == true @@ -3776,8 +3776,8 @@
-
- +
+ spec.hasFilters() == true @@ -3785,7 +3785,7 @@ true == true - + spec.matches( tcA ) == false @@ -3793,7 +3793,7 @@ false == false - + spec.matches( tcB ) == false @@ -3801,7 +3801,7 @@ false == false - + spec.matches( tcC ) == true @@ -3811,8 +3811,8 @@
-
- +
+ spec.hasFilters() == true @@ -3820,7 +3820,7 @@ true == true - + spec.matches( tcA ) == false @@ -3828,7 +3828,7 @@ false == false - + spec.matches( tcB ) == false @@ -3836,7 +3836,7 @@ false == false - + spec.matches( tcC ) == true @@ -3844,7 +3844,7 @@ true == true - + spec.matches( tcD ) == false @@ -3854,8 +3854,8 @@
-
- +
+ spec.hasFilters() == true @@ -3863,7 +3863,7 @@ true == true - + spec.matches( tcA ) == true @@ -3871,7 +3871,7 @@ true == true - + spec.matches( tcB ) == false @@ -3879,7 +3879,7 @@ false == false - + spec.matches( tcC ) == true @@ -3889,8 +3889,8 @@
-
- +
+ spec.hasFilters() == true @@ -3898,7 +3898,7 @@ true == true - + spec.matches( tcA ) == false @@ -3906,7 +3906,7 @@ false == false - + spec.matches( tcB ) == true @@ -3914,7 +3914,7 @@ true == true - + spec.matches( tcC ) == false @@ -3924,8 +3924,8 @@
-
- +
+ spec.hasFilters() == true @@ -3933,7 +3933,7 @@ true == true - + spec.matches( tcA ) == false @@ -3941,7 +3941,7 @@ false == false - + spec.matches( tcB ) == false @@ -3949,7 +3949,7 @@ false == false - + spec.matches( tcC ) == false @@ -3957,7 +3957,7 @@ false == false - + spec.matches( tcD ) == true @@ -3967,8 +3967,8 @@
-
- +
+ spec.hasFilters() == true @@ -3976,7 +3976,7 @@ true == true - + spec.matches( tcA ) == false @@ -3984,7 +3984,7 @@ false == false - + spec.matches( tcB ) == false @@ -3992,7 +3992,7 @@ false == false - + spec.matches( tcC ) == false @@ -4000,7 +4000,7 @@ false == false - + spec.matches( tcD ) == true @@ -4010,8 +4010,8 @@
-
- +
+ spec.hasFilters() == true @@ -4019,7 +4019,7 @@ true == true - + spec.matches( tcA ) == true @@ -4027,7 +4027,7 @@ true == true - + spec.matches( tcB ) == false @@ -4035,7 +4035,7 @@ false == false - + spec.matches( tcC ) == true @@ -4043,7 +4043,7 @@ true == true - + spec.matches( tcD ) == true @@ -4053,8 +4053,8 @@
-
- +
+ spec.hasFilters() == true @@ -4062,7 +4062,7 @@ true == true - + spec.matches( tcA ) == true @@ -4070,7 +4070,7 @@ true == true - + spec.matches( tcB ) == true @@ -4078,7 +4078,7 @@ true == true - + spec.matches( tcC ) == false @@ -4086,7 +4086,7 @@ false == false - + spec.matches( tcD ) == false @@ -4096,8 +4096,8 @@
-
- +
+ spec.hasFilters() == true @@ -4105,7 +4105,7 @@ true == true - + spec.matches( tcA ) == true @@ -4113,7 +4113,7 @@ true == true - + spec.matches( tcB ) == true @@ -4121,7 +4121,7 @@ true == true - + spec.matches( tcC ) == true @@ -4129,7 +4129,7 @@ true == true - + spec.matches( tcD ) == false @@ -4139,8 +4139,8 @@
-
- +
+ spec.hasFilters() == true @@ -4148,7 +4148,7 @@ true == true - + spec.matches( tcA ) == true @@ -4156,7 +4156,7 @@ true == true - + spec.matches( tcB ) == true @@ -4164,7 +4164,7 @@ true == true - + spec.matches( tcC ) == true @@ -4172,7 +4172,7 @@ true == true - + spec.matches( tcD ) == false @@ -4182,8 +4182,8 @@
-
- +
+ spec.hasFilters() == true @@ -4191,7 +4191,7 @@ true == true - + spec.matches( tcA ) == false @@ -4199,7 +4199,7 @@ false == false - + spec.matches( tcB ) == false @@ -4207,7 +4207,7 @@ false == false - + spec.matches( tcC ) == true @@ -4215,7 +4215,7 @@ true == true - + spec.matches( tcD ) == false @@ -4225,8 +4225,8 @@
-
- +
+ spec.hasFilters() == false @@ -4234,7 +4234,7 @@ false == false - + spec.matches( tcA ) == false @@ -4242,7 +4242,7 @@ false == false - + spec.matches( tcB ) == false @@ -4250,7 +4250,7 @@ false == false - + spec.matches( tcC ) == false @@ -4258,7 +4258,7 @@ false == false - + spec.matches( tcD ) == false @@ -4268,8 +4268,8 @@
-
- +
+ spec.hasFilters() == false @@ -4277,7 +4277,7 @@ false == false - + spec.matches( tcA ) == false @@ -4285,7 +4285,7 @@ false == false - + spec.matches( tcB ) == false @@ -4293,7 +4293,7 @@ false == false - + spec.matches( tcC ) == false @@ -4301,7 +4301,7 @@ false == false - + spec.matches( tcD ) == false @@ -4311,8 +4311,8 @@
-
- +
+ spec.hasFilters() == true @@ -4320,7 +4320,7 @@ true == true - + spec.matches( tcA ) == false @@ -4328,7 +4328,7 @@ false == false - + spec.matches( tcB ) == false @@ -4336,7 +4336,7 @@ false == false - + spec.matches( tcC ) == false @@ -4344,7 +4344,7 @@ false == false - + spec.matches( tcD ) == true @@ -4356,8 +4356,8 @@
- - + + (std::pair<int, int>( 1, 2 )) == aNicePair @@ -4367,8 +4367,8 @@ - - + + p == 0 @@ -4376,7 +4376,7 @@ 0 == 0 - + p == pNULL @@ -4384,7 +4384,7 @@ 0 == 0 - + p != 0 @@ -4392,7 +4392,7 @@ 0x != 0 - + cp != 0 @@ -4400,7 +4400,7 @@ 0x != 0 - + cpc != 0 @@ -4408,7 +4408,7 @@ 0x != 0 - + returnsNull() == 0 @@ -4416,7 +4416,7 @@ {null string} == 0 - + returnsConstNull() == 0 @@ -4424,7 +4424,7 @@ {null string} == 0 - + 0 != p @@ -4434,9 +4434,9 @@ - -
- + +
+ result @@ -4444,7 +4444,7 @@ {?} - + config.processName == "" @@ -4454,8 +4454,8 @@
-
- +
+ result @@ -4463,7 +4463,7 @@ {?} - + config.processName == "test" @@ -4471,7 +4471,7 @@ "test" == "test" - + config.shouldDebugBreak == false @@ -4479,7 +4479,7 @@ false == false - + config.abortAfter == -1 @@ -4487,7 +4487,7 @@ -1 == -1 - + config.noThrow == false @@ -4495,7 +4495,7 @@ false == false - + config.reporterNames.empty() @@ -4505,9 +4505,9 @@
-
-
- +
+
+ result @@ -4515,7 +4515,7 @@ {?} - + cfg.testSpec().matches(fakeTestCase("notIncluded")) == false @@ -4523,7 +4523,7 @@ false == false - + cfg.testSpec().matches(fakeTestCase("test1")) @@ -4535,9 +4535,9 @@
-
-
- +
+
+ result @@ -4545,7 +4545,7 @@ {?} - + cfg.testSpec().matches(fakeTestCase("test1")) == false @@ -4553,7 +4553,7 @@ false == false - + cfg.testSpec().matches(fakeTestCase("alwaysIncluded")) @@ -4565,9 +4565,9 @@
-
-
- +
+
+ result @@ -4575,7 +4575,7 @@ {?} - + cfg.testSpec().matches(fakeTestCase("test1")) == false @@ -4583,7 +4583,7 @@ false == false - + cfg.testSpec().matches(fakeTestCase("alwaysIncluded")) @@ -4595,9 +4595,9 @@
-
-
- +
+
+ cli.parse({"test", "-r", "console"}) @@ -4605,7 +4605,7 @@ {?} - + config.reporterNames[0] == "console" @@ -4617,9 +4617,9 @@
-
-
- +
+
+ cli.parse({"test", "-r", "xml"}) @@ -4627,7 +4627,7 @@ {?} - + config.reporterNames[0] == "xml" @@ -4639,9 +4639,9 @@
-
-
- +
+
+ cli.parse({"test", "-r", "xml", "-r", "junit"}) @@ -4649,7 +4649,7 @@ {?} - + config.reporterNames.size() == 2 @@ -4657,7 +4657,7 @@ 2 == 2 - + config.reporterNames[0] == "xml" @@ -4665,7 +4665,7 @@ "xml" == "xml" - + config.reporterNames[1] == "junit" @@ -4677,9 +4677,9 @@
-
-
- +
+
+ cli.parse({"test", "--reporter", "junit"}) @@ -4687,7 +4687,7 @@ {?} - + config.reporterNames[0] == "junit" @@ -4699,9 +4699,9 @@
-
-
- +
+
+ cli.parse({"test", "-b"}) @@ -4709,7 +4709,7 @@ {?} - + config.shouldDebugBreak == true @@ -4721,9 +4721,9 @@
-
-
- +
+
+ cli.parse({"test", "--break"}) @@ -4731,7 +4731,7 @@ {?} - + config.shouldDebugBreak @@ -4743,9 +4743,9 @@
-
-
- +
+
+ cli.parse({"test", "-a"}) @@ -4753,7 +4753,7 @@ {?} - + config.abortAfter == 1 @@ -4765,9 +4765,9 @@
-
-
- +
+
+ cli.parse({"test", "-x", "2"}) @@ -4775,7 +4775,7 @@ {?} - + config.abortAfter == 2 @@ -4787,9 +4787,9 @@
-
-
- +
+
+ !result @@ -4797,7 +4797,7 @@ true - + result.errorMessage(), Contains("convert") && Contains("oops") @@ -4809,9 +4809,9 @@
-
-
- +
+
+ cli.parse({"test", "-e"}) @@ -4819,7 +4819,7 @@ {?} - + config.noThrow @@ -4831,9 +4831,9 @@
-
-
- +
+
+ cli.parse({"test", "--nothrow"}) @@ -4841,7 +4841,7 @@ {?} - + config.noThrow @@ -4853,9 +4853,9 @@
-
-
- +
+
+ cli.parse({"test", "-o", "filename.ext"}) @@ -4863,7 +4863,7 @@ {?} - + config.outputFilename == "filename.ext" @@ -4875,9 +4875,9 @@
-
-
- +
+
+ cli.parse({"test", "--out", "filename.ext"}) @@ -4885,7 +4885,7 @@ {?} - + config.outputFilename == "filename.ext" @@ -4897,9 +4897,9 @@
-
-
- +
+
+ cli.parse({"test", "-abe"}) @@ -4907,7 +4907,7 @@ {?} - + config.abortAfter == 1 @@ -4915,7 +4915,7 @@ 1 == 1 - + config.shouldDebugBreak @@ -4923,7 +4923,7 @@ true - + config.noThrow == true @@ -4935,9 +4935,9 @@
-
-
- +
+
+ cli.parse({"test"}) @@ -4945,7 +4945,7 @@ {?} - + config.useColour == UseColour::Auto @@ -4957,9 +4957,9 @@
-
-
- +
+
+ cli.parse({"test", "--use-colour", "auto"}) @@ -4967,7 +4967,7 @@ {?} - + config.useColour == UseColour::Auto @@ -4979,9 +4979,9 @@
-
-
- +
+
+ cli.parse({"test", "--use-colour", "yes"}) @@ -4989,7 +4989,7 @@ {?} - + config.useColour == UseColour::Yes @@ -5001,9 +5001,9 @@
-
-
- +
+
+ cli.parse({"test", "--use-colour", "no"}) @@ -5011,7 +5011,7 @@ {?} - + config.useColour == UseColour::No @@ -5023,9 +5023,9 @@
-
-
- +
+
+ !result @@ -5033,7 +5033,7 @@ true - + result.errorMessage(), Contains( "colour mode must be one of" ) @@ -5047,8 +5047,8 @@
- - + + truthy(false) @@ -5058,8 +5058,8 @@ - - + + testStringForMatching(), Matches("this STRING contains 'abc' as a substring") @@ -5067,7 +5067,7 @@ "this string contains 'abc' as a substring" matches "this STRING contains 'abc' as a substring" case sensitively - + testStringForMatching(), Matches("contains 'abc' as a substring") @@ -5075,7 +5075,7 @@ "this string contains 'abc' as a substring" matches "contains 'abc' as a substring" case sensitively - + testStringForMatching(), Matches("this string contains 'abc' as a") @@ -5085,15 +5085,15 @@ - + - + - -
- + +
+ before == 0 @@ -5101,9 +5101,9 @@ 0 == 0 -
-
- +
+
+ after > before @@ -5119,11 +5119,11 @@
- -
-
-
- + +
+
+
+ itDoesThis() @@ -5131,8 +5131,8 @@ true -
- +
+ itDoesThat() @@ -5150,10 +5150,10 @@
- -
-
-
+ +
+
+
@@ -5162,9 +5162,9 @@
- -
- + +
+ v.size() == 0 @@ -5172,9 +5172,9 @@ 0 == 0 -
-
- +
+
+ v.size() == 10 @@ -5182,7 +5182,7 @@ 10 == 10 - + v.capacity() >= 10 @@ -5190,9 +5190,9 @@ 10 >= 10 -
-
- +
+
+ v.size() == 5 @@ -5200,7 +5200,7 @@ 5 == 5 - + v.capacity() >= 10 @@ -5218,8 +5218,8 @@
-
- +
+ v.size() == 0 @@ -5227,9 +5227,9 @@ 0 == 0 -
-
- +
+
+ v.capacity() >= 10 @@ -5237,7 +5237,7 @@ 10 >= 10 - + v.size() == 0 @@ -5253,7 +5253,7 @@
- + A string sent directly to stdout @@ -5263,8 +5263,8 @@ A string sent directly to stderr - - + + d == Approx( 1.23 ) @@ -5272,7 +5272,7 @@ A string sent directly to stderr 1.23 == Approx( 1.23 ) - + d != Approx( 1.22 ) @@ -5280,7 +5280,7 @@ A string sent directly to stderr 1.23 != Approx( 1.22 ) - + d != Approx( 1.24 ) @@ -5288,7 +5288,7 @@ A string sent directly to stderr 1.23 != Approx( 1.24 ) - + Approx( d ) == 1.23 @@ -5296,7 +5296,7 @@ A string sent directly to stderr Approx( 1.23 ) == 1.23 - + Approx( d ) != 1.22 @@ -5304,7 +5304,7 @@ A string sent directly to stderr Approx( 1.23 ) != 1.22 - + Approx( d ) != 1.24 @@ -5312,7 +5312,7 @@ A string sent directly to stderr Approx( 1.23 ) != 1.24 - + INFINITY == Approx(INFINITY) @@ -5322,11 +5322,11 @@ A string sent directly to stderr - -
+ +
-
+
@@ -5336,8 +5336,8 @@ Message from section two - - + + testStringForMatching(), StartsWith( "This String" ) @@ -5345,7 +5345,7 @@ Message from section two "this string contains 'abc' as a substring" starts with: "This String" - + testStringForMatching(), StartsWith( "string", Catch::CaseSensitive::No ) @@ -5355,8 +5355,8 @@ Message from section two - - + + testStringForMatching(), Contains( "string" ) @@ -5364,7 +5364,7 @@ Message from section two "this string contains 'abc' as a substring" contains: "string" - + testStringForMatching(), Contains( "string", Catch::CaseSensitive::No ) @@ -5372,7 +5372,7 @@ Message from section two "this string contains 'abc' as a substring" contains: "string" (case insensitive) - + testStringForMatching(), Contains( "abc" ) @@ -5380,7 +5380,7 @@ Message from section two "this string contains 'abc' as a substring" contains: "abc" - + testStringForMatching(), Contains( "aBC", Catch::CaseSensitive::No ) @@ -5388,7 +5388,7 @@ Message from section two "this string contains 'abc' as a substring" contains: "abc" (case insensitive) - + testStringForMatching(), StartsWith( "this" ) @@ -5396,7 +5396,7 @@ Message from section two "this string contains 'abc' as a substring" starts with: "this" - + testStringForMatching(), StartsWith( "THIS", Catch::CaseSensitive::No ) @@ -5404,7 +5404,7 @@ Message from section two "this string contains 'abc' as a substring" starts with: "this" (case insensitive) - + testStringForMatching(), EndsWith( "substring" ) @@ -5412,7 +5412,7 @@ Message from section two "this string contains 'abc' as a substring" ends with: "substring" - + testStringForMatching(), EndsWith(" SuBsTrInG", Catch::CaseSensitive::No ) @@ -5420,7 +5420,7 @@ Message from section two "this string contains 'abc' as a substring" ends with: " substring" (case insensitive) - + testStringForMatching(), Matches("this string contains 'abc' as a substring") @@ -5428,7 +5428,7 @@ Message from section two "this string contains 'abc' as a substring" matches "this string contains 'abc' as a substring" case sensitively - + testStringForMatching(), Matches("this string CONTAINS 'abc' as a substring", Catch::CaseSensitive::No) @@ -5436,7 +5436,7 @@ Message from section two "this string contains 'abc' as a substring" matches "this string CONTAINS 'abc' as a substring" case insensitively - + testStringForMatching(), Matches("^this string contains 'abc' as a substring$") @@ -5444,7 +5444,7 @@ Message from section two "this string contains 'abc' as a substring" matches "^this string contains 'abc' as a substring$" case sensitively - + testStringForMatching(), Matches("^.* 'abc' .*$") @@ -5452,7 +5452,7 @@ Message from section two "this string contains 'abc' as a substring" matches "^.* 'abc' .*$" case sensitively - + testStringForMatching(), Matches("^.* 'ABC' .*$", Catch::CaseSensitive::No) @@ -5462,9 +5462,9 @@ Message from section two - -
- + +
+ empty.empty() @@ -5472,7 +5472,7 @@ Message from section two true - + empty.size() == 0 @@ -5480,7 +5480,7 @@ Message from section two 0 == 0 - + std::strcmp( empty.c_str(), "" ) == 0 @@ -5490,8 +5490,8 @@ Message from section two
-
- +
+ s.empty() == false @@ -5499,7 +5499,7 @@ Message from section two false == false - + s.size() == 5 @@ -5507,7 +5507,7 @@ Message from section two 5 == 5 - + isSubstring( s ) == false @@ -5515,7 +5515,7 @@ Message from section two false == false - + std::strcmp( rawChars, "hello" ) == 0 @@ -5523,8 +5523,8 @@ Message from section two 0 == 0 -
- +
+ isOwned( s ) == false @@ -5532,7 +5532,7 @@ Message from section two false == false - + s.c_str() == rawChars @@ -5540,7 +5540,7 @@ Message from section two "hello" == "hello" - + isOwned( s ) == false @@ -5552,8 +5552,8 @@ Message from section two
-
- +
+ original == "original" @@ -5561,7 +5561,7 @@ Message from section two original == "original" - + isSubstring( original ) @@ -5571,9 +5571,9 @@ Message from section two
-
-
- +
+
+ ss.empty() == false @@ -5581,7 +5581,7 @@ Message from section two false == false - + ss.size() == 5 @@ -5589,7 +5589,7 @@ Message from section two 5 == 5 - + std::strcmp( ss.c_str(), "hello" ) == 0 @@ -5597,7 +5597,7 @@ Message from section two 0 == 0 - + ss == "hello" @@ -5609,9 +5609,9 @@ Message from section two
-
-
- +
+
+ isSubstring( ss ) @@ -5619,7 +5619,7 @@ Message from section two true - + isOwned( ss ) == false @@ -5627,7 +5627,7 @@ Message from section two false == false - + rawChars == data( s ) @@ -5635,7 +5635,7 @@ Message from section two "hello world!" == "hello world!" - + ss.c_str() != rawChars @@ -5643,7 +5643,7 @@ Message from section two "hello" != "hello world!" - + isSubstring( ss ) == false @@ -5651,7 +5651,7 @@ Message from section two false == false - + isOwned( ss ) @@ -5659,7 +5659,7 @@ Message from section two true - + data( ss ) != data( s ) @@ -5671,9 +5671,9 @@ Message from section two
-
-
- +
+
+ ss.size() == 6 @@ -5681,7 +5681,7 @@ Message from section two 6 == 6 - + std::strcmp( ss.c_str(), "world!" ) == 0 @@ -5693,9 +5693,9 @@ Message from section two
-
-
- +
+
+ s.c_str() == s2.c_str() @@ -5707,9 +5707,9 @@ Message from section two
-
-
- +
+
+ s.c_str() != ss.c_str() @@ -5721,8 +5721,8 @@ Message from section two
-
- +
+ StringRef("hello") == StringRef("hello") @@ -5730,7 +5730,7 @@ Message from section two hello == hello - + StringRef("hello") != StringRef("cello") @@ -5740,9 +5740,9 @@ Message from section two
-
-
- +
+
+ sr == "a standard string" @@ -5750,7 +5750,7 @@ Message from section two a standard string == "a standard string" - + sr.size() == stdStr.size() @@ -5762,9 +5762,9 @@ Message from section two
-
-
- +
+
+ sr == "a standard string" @@ -5772,7 +5772,7 @@ Message from section two a standard string == "a standard string" - + sr.size() == stdStr.size() @@ -5784,9 +5784,9 @@ Message from section two
-
-
- +
+
+ sr == "a standard string" @@ -5794,7 +5794,7 @@ Message from section two a standard string == "a standard string" - + sr.size() == stdStr.size() @@ -5806,9 +5806,9 @@ Message from section two
-
-
- +
+
+ stdStr == "a stringref" @@ -5816,7 +5816,7 @@ Message from section two "a stringref" == "a stringref" - + stdStr.size() == sr.size() @@ -5828,9 +5828,9 @@ Message from section two
-
-
- +
+
+ stdStr == "a stringref" @@ -5838,7 +5838,7 @@ Message from section two "a stringref" == "a stringref" - + stdStr.size() == sr.size() @@ -5850,9 +5850,9 @@ Message from section two
-
-
- +
+
+ stdStr == "a stringref" @@ -5860,7 +5860,7 @@ Message from section two "a stringref" == "a stringref" - + stdStr.size() == sr.size() @@ -5874,8 +5874,8 @@ Message from section two
- - + + minute == seconds @@ -5883,7 +5883,7 @@ Message from section two 1 m == 60 s - + hour != seconds @@ -5891,7 +5891,7 @@ Message from section two 1 h != 60 s - + micro != milli @@ -5899,7 +5899,7 @@ Message from section two 1 us != 1 ms - + nano != micro @@ -5909,8 +5909,8 @@ Message from section two - - + + half_minute != femto_second @@ -5920,8 +5920,8 @@ Message from section two - - + + now != later @@ -5933,8 +5933,8 @@ Message from section two - - + + s1 == s2 @@ -5951,9 +5951,9 @@ Message from section two - -
- + +
+ what, Contains( "[@zzz]" ) @@ -5963,7 +5963,7 @@ Message from section two Redefined at: file:10" contains: "[@zzz]" - + what, Contains( "file" ) @@ -5973,7 +5973,7 @@ Message from section two Redefined at: file:10" contains: "file" - + what, Contains( "2" ) @@ -5983,7 +5983,7 @@ Message from section two Redefined at: file:10" contains: "2" - + what, Contains( "10" ) @@ -5995,8 +5995,8 @@ Message from section two
-
- +
+ registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) @@ -6004,7 +6004,7 @@ Message from section two registry.add( "[no ampersat]", "", Catch::SourceLineInfo( "file", 3 ) ) - + registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) @@ -6012,7 +6012,7 @@ Message from section two registry.add( "[the @ is not at the start]", "", Catch::SourceLineInfo( "file", 3 ) ) - + registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) @@ -6020,7 +6020,7 @@ Message from section two registry.add( "@no square bracket at start]", "", Catch::SourceLineInfo( "file", 3 ) ) - + registry.add( "[@no square bracket at end", "", Catch::SourceLineInfo( "file", 3 ) ) @@ -6032,11 +6032,11 @@ Message from section two
- + - - + + 0x == bit30and31 @@ -6046,8 +6046,8 @@ Message from section two - - + + 1 == 2 @@ -6057,11 +6057,11 @@ Message from section two - + - - + + testCase.isOpen() @@ -6069,7 +6069,7 @@ Message from section two true - + s1.isOpen() @@ -6077,8 +6077,8 @@ Message from section two true -
- +
+ s1.isSuccessfullyCompleted() @@ -6086,7 +6086,7 @@ Message from section two true - + testCase.isComplete() == false @@ -6094,7 +6094,7 @@ Message from section two false == false - + ctx.completedCycle() @@ -6102,7 +6102,7 @@ Message from section two true - + testCase.isSuccessfullyCompleted() @@ -6112,7 +6112,7 @@ Message from section two
- + testCase.isOpen() @@ -6120,7 +6120,7 @@ Message from section two true - + s1.isOpen() @@ -6128,8 +6128,8 @@ Message from section two true -
- +
+ s1.isComplete() @@ -6137,7 +6137,7 @@ Message from section two true - + s1.isSuccessfullyCompleted() == false @@ -6145,7 +6145,7 @@ Message from section two false == false - + testCase.isComplete() == false @@ -6153,7 +6153,7 @@ Message from section two false == false - + ctx.completedCycle() @@ -6161,7 +6161,7 @@ Message from section two true - + testCase.isSuccessfullyCompleted() == false @@ -6169,8 +6169,8 @@ Message from section two false == false -
- +
+ testCase2.isOpen() @@ -6178,7 +6178,7 @@ Message from section two true - + s1b.isOpen() == false @@ -6186,7 +6186,7 @@ Message from section two false == false - + ctx.completedCycle() @@ -6194,7 +6194,7 @@ Message from section two true - + testCase.isComplete() @@ -6202,7 +6202,7 @@ Message from section two true - + testCase.isSuccessfullyCompleted() @@ -6214,7 +6214,7 @@ Message from section two
- + testCase.isOpen() @@ -6222,7 +6222,7 @@ Message from section two true - + s1.isOpen() @@ -6230,8 +6230,8 @@ Message from section two true -
- +
+ s1.isComplete() @@ -6239,7 +6239,7 @@ Message from section two true - + s1.isSuccessfullyCompleted() == false @@ -6247,7 +6247,7 @@ Message from section two false == false - + testCase.isComplete() == false @@ -6255,7 +6255,7 @@ Message from section two false == false - + ctx.completedCycle() @@ -6263,7 +6263,7 @@ Message from section two true - + testCase.isSuccessfullyCompleted() == false @@ -6271,8 +6271,8 @@ Message from section two false == false -
- +
+ testCase2.isOpen() @@ -6280,7 +6280,7 @@ Message from section two true - + s1b.isOpen() == false @@ -6288,7 +6288,7 @@ Message from section two false == false - + s2.isOpen() @@ -6296,7 +6296,7 @@ Message from section two true - + ctx.completedCycle() @@ -6304,7 +6304,7 @@ Message from section two true - + testCase.isComplete() @@ -6312,7 +6312,7 @@ Message from section two true - + testCase.isSuccessfullyCompleted() @@ -6324,7 +6324,7 @@ Message from section two
- + testCase.isOpen() @@ -6332,7 +6332,7 @@ Message from section two true - + s1.isOpen() @@ -6340,8 +6340,8 @@ Message from section two true -
- +
+ s2.isOpen() == false @@ -6349,7 +6349,7 @@ Message from section two false == false - + testCase.isComplete() == false @@ -6357,8 +6357,8 @@ Message from section two false == false -
- +
+ testCase2.isOpen() @@ -6366,7 +6366,7 @@ Message from section two true - + s1b.isOpen() == false @@ -6374,7 +6374,7 @@ Message from section two false == false - + s2b.isOpen() @@ -6382,7 +6382,7 @@ Message from section two true - + ctx.completedCycle() == false @@ -6390,8 +6390,8 @@ Message from section two false == false -
- +
+ ctx.completedCycle() @@ -6399,7 +6399,7 @@ Message from section two true - + s2b.isSuccessfullyCompleted() @@ -6407,7 +6407,7 @@ Message from section two true - + testCase2.isComplete() == false @@ -6415,7 +6415,7 @@ Message from section two false == false - + testCase2.isSuccessfullyCompleted() @@ -6429,7 +6429,7 @@ Message from section two
- + testCase.isOpen() @@ -6437,7 +6437,7 @@ Message from section two true - + s1.isOpen() @@ -6445,8 +6445,8 @@ Message from section two true -
- +
+ s2.isOpen() == false @@ -6454,7 +6454,7 @@ Message from section two false == false - + testCase.isComplete() == false @@ -6462,8 +6462,8 @@ Message from section two false == false -
- +
+ testCase2.isOpen() @@ -6471,7 +6471,7 @@ Message from section two true - + s1b.isOpen() == false @@ -6479,7 +6479,7 @@ Message from section two false == false - + s2b.isOpen() @@ -6487,7 +6487,7 @@ Message from section two true - + ctx.completedCycle() == false @@ -6495,8 +6495,8 @@ Message from section two false == false -
- +
+ ctx.completedCycle() @@ -6504,7 +6504,7 @@ Message from section two true - + s2b.isComplete() @@ -6512,7 +6512,7 @@ Message from section two true - + s2b.isSuccessfullyCompleted() == false @@ -6520,7 +6520,7 @@ Message from section two false == false - + testCase2.isSuccessfullyCompleted() == false @@ -6528,7 +6528,7 @@ Message from section two false == false - + testCase3.isOpen() @@ -6536,7 +6536,7 @@ Message from section two true - + s1c.isOpen() == false @@ -6544,7 +6544,7 @@ Message from section two false == false - + s2c.isOpen() == false @@ -6552,7 +6552,7 @@ Message from section two false == false - + testCase3.isSuccessfullyCompleted() @@ -6566,7 +6566,7 @@ Message from section two
- + testCase.isOpen() @@ -6574,7 +6574,7 @@ Message from section two true - + s1.isOpen() @@ -6582,8 +6582,8 @@ Message from section two true -
- +
+ s2.isOpen() @@ -6591,7 +6591,7 @@ Message from section two true - + s2.isComplete() @@ -6599,7 +6599,7 @@ Message from section two true - + s1.isComplete() == false @@ -6607,7 +6607,7 @@ Message from section two false == false - + s1.isComplete() @@ -6615,7 +6615,7 @@ Message from section two true - + testCase.isComplete() == false @@ -6623,7 +6623,7 @@ Message from section two false == false - + testCase.isComplete() @@ -6633,7 +6633,7 @@ Message from section two
- + testCase.isOpen() @@ -6641,7 +6641,7 @@ Message from section two true - + s1.isOpen() @@ -6649,8 +6649,8 @@ Message from section two true -
- +
+ g1.isOpen() @@ -6658,7 +6658,7 @@ Message from section two true - + g1.index() == 0 @@ -6666,7 +6666,7 @@ Message from section two 0 == 0 - + g1.isComplete() == false @@ -6674,7 +6674,7 @@ Message from section two false == false - + s1.isComplete() == false @@ -6682,8 +6682,8 @@ Message from section two false == false -
- +
+ s1.isComplete() == false @@ -6691,7 +6691,7 @@ Message from section two false == false - + testCase.isSuccessfullyCompleted() == false @@ -6699,8 +6699,8 @@ Message from section two false == false -
- +
+ testCase2.isOpen() @@ -6708,7 +6708,7 @@ Message from section two true - + s1b.isOpen() @@ -6716,7 +6716,7 @@ Message from section two true - + g1b.isOpen() @@ -6724,7 +6724,7 @@ Message from section two true - + g1b.index() == 1 @@ -6732,7 +6732,7 @@ Message from section two 1 == 1 - + s1.isComplete() == false @@ -6740,7 +6740,7 @@ Message from section two false == false - + s1b.isComplete() @@ -6748,7 +6748,7 @@ Message from section two true - + g1b.isComplete() @@ -6756,7 +6756,7 @@ Message from section two true - + testCase2.isComplete() @@ -6770,7 +6770,7 @@ Message from section two
- + testCase.isOpen() @@ -6778,7 +6778,7 @@ Message from section two true - + s1.isOpen() @@ -6786,8 +6786,8 @@ Message from section two true -
- +
+ g1.isOpen() @@ -6795,7 +6795,7 @@ Message from section two true - + g1.index() == 0 @@ -6803,7 +6803,7 @@ Message from section two 0 == 0 - + g1.isComplete() == false @@ -6811,7 +6811,7 @@ Message from section two false == false - + s1.isComplete() == false @@ -6819,8 +6819,8 @@ Message from section two false == false -
- +
+ s2.isOpen() @@ -6828,7 +6828,7 @@ Message from section two true - + s2.isComplete() @@ -6836,7 +6836,7 @@ Message from section two true - + s1.isComplete() == false @@ -6844,7 +6844,7 @@ Message from section two false == false - + testCase.isComplete() == false @@ -6852,8 +6852,8 @@ Message from section two false == false -
- +
+ testCase2.isOpen() @@ -6861,7 +6861,7 @@ Message from section two true - + s1b.isOpen() @@ -6869,7 +6869,7 @@ Message from section two true - + g1b.isOpen() @@ -6877,7 +6877,7 @@ Message from section two true - + g1b.index() == 1 @@ -6885,7 +6885,7 @@ Message from section two 1 == 1 - + s2b.isOpen() @@ -6893,7 +6893,7 @@ Message from section two true - + s2b.isComplete() @@ -6901,7 +6901,7 @@ Message from section two true - + g1b.isComplete() @@ -6909,7 +6909,7 @@ Message from section two true - + s1b.isComplete() @@ -6917,7 +6917,7 @@ Message from section two true - + testCase2.isComplete() @@ -6931,7 +6931,7 @@ Message from section two
- + testCase.isOpen() @@ -6939,7 +6939,7 @@ Message from section two true - + s1.isOpen() @@ -6947,8 +6947,8 @@ Message from section two true -
- +
+ g1.isOpen() @@ -6956,7 +6956,7 @@ Message from section two true - + g1.index() == 0 @@ -6964,7 +6964,7 @@ Message from section two 0 == 0 - + g1.isComplete() == false @@ -6972,7 +6972,7 @@ Message from section two false == false - + s1.isComplete() == false @@ -6980,8 +6980,8 @@ Message from section two false == false -
- +
+ s2.isOpen() @@ -6989,7 +6989,7 @@ Message from section two true - + s2.isComplete() @@ -6997,7 +6997,7 @@ Message from section two true - + s2.isSuccessfullyCompleted() == false @@ -7005,7 +7005,7 @@ Message from section two false == false - + s1.isComplete() == false @@ -7013,7 +7013,7 @@ Message from section two false == false - + testCase.isComplete() == false @@ -7021,8 +7021,8 @@ Message from section two false == false -
- +
+ testCase2.isOpen() @@ -7030,7 +7030,7 @@ Message from section two true - + s1b.isOpen() @@ -7038,7 +7038,7 @@ Message from section two true - + g1b.isOpen() @@ -7046,7 +7046,7 @@ Message from section two true - + g1b.index() == 0 @@ -7054,7 +7054,7 @@ Message from section two 0 == 0 - + s2b.isOpen() == false @@ -7062,7 +7062,7 @@ Message from section two false == false - + g1b.isComplete() == false @@ -7070,7 +7070,7 @@ Message from section two false == false - + s1b.isComplete() == false @@ -7078,7 +7078,7 @@ Message from section two false == false - + testCase2.isComplete() == false @@ -7086,7 +7086,7 @@ Message from section two false == false - + testCase3.isOpen() @@ -7094,7 +7094,7 @@ Message from section two true - + s1c.isOpen() @@ -7102,7 +7102,7 @@ Message from section two true - + g1c.isOpen() @@ -7110,7 +7110,7 @@ Message from section two true - + g1c.index() == 1 @@ -7118,7 +7118,7 @@ Message from section two 1 == 1 - + s2c.isOpen() @@ -7126,7 +7126,7 @@ Message from section two true - + s2c.isComplete() @@ -7134,7 +7134,7 @@ Message from section two true - + g1c.isComplete() @@ -7142,7 +7142,7 @@ Message from section two true - + s1c.isComplete() @@ -7150,7 +7150,7 @@ Message from section two true - + testCase3.isComplete() @@ -7166,14 +7166,14 @@ Message from section two
- - + + 3.14 - - + + d == approx( 1.23 ) @@ -7181,7 +7181,7 @@ Message from section two 1.23 == Approx( 1.23 ) - + d == approx( 1.22 ) @@ -7189,7 +7189,7 @@ Message from section two 1.23 == Approx( 1.22 ) - + d == approx( 1.24 ) @@ -7197,7 +7197,7 @@ Message from section two 1.23 == Approx( 1.24 ) - + d != approx( 1.25 ) @@ -7205,7 +7205,7 @@ Message from section two 1.23 != Approx( 1.25 ) - + approx( d ) == 1.23 @@ -7213,7 +7213,7 @@ Message from section two Approx( 1.23 ) == 1.23 - + approx( d ) == 1.22 @@ -7221,7 +7221,7 @@ Message from section two Approx( 1.23 ) == 1.22 - + approx( d ) == 1.24 @@ -7229,7 +7229,7 @@ Message from section two Approx( 1.23 ) == 1.24 - + approx( d ) != 1.25 @@ -7239,15 +7239,15 @@ Message from section two - -
+ +
- -
- + +
+ v, VectorContains( 1 ) @@ -7255,7 +7255,7 @@ Message from section two { 1, 2, 3 } Contains: 1 - + v, VectorContains( 2 ) @@ -7265,8 +7265,8 @@ Message from section two
-
- +
+ v, Contains( v2 ) @@ -7274,7 +7274,7 @@ Message from section two { 1, 2, 3 } Contains: { 1, 2 } - + v, Contains( v2 ) @@ -7282,7 +7282,7 @@ Message from section two { 1, 2, 3 } Contains: { 1, 2, 3 } - + v, Contains( empty) @@ -7290,7 +7290,7 @@ Message from section two { 1, 2, 3 } Contains: { } - + empty, Contains( empty) @@ -7300,8 +7300,8 @@ Message from section two
-
- +
+ v, VectorContains( 1 ) && VectorContains( 2 ) @@ -7311,8 +7311,8 @@ Message from section two
-
- +
+ v, Equals( v ) @@ -7320,7 +7320,7 @@ Message from section two { 1, 2, 3 } Equals: { 1, 2, 3 } - + empty, Equals( empty ) @@ -7328,7 +7328,7 @@ Message from section two { } Equals: { } - + v, Equals( v2 ) @@ -7340,9 +7340,9 @@ Message from section two
- -
- + +
+ v, VectorContains( -1 ) @@ -7350,7 +7350,7 @@ Message from section two { 1, 2, 3 } Contains: -1 - + empty, VectorContains( 1 ) @@ -7360,8 +7360,8 @@ Message from section two
-
- +
+ empty, Contains( v) @@ -7369,7 +7369,7 @@ Message from section two { } Contains: { 1, 2, 3 } - + v, Contains( v2 ) @@ -7379,8 +7379,8 @@ Message from section two
-
- +
+ v, Equals( v2 ) @@ -7388,7 +7388,7 @@ Message from section two { 1, 2, 3 } Equals: { 1, 2 } - + v2, Equals( v ) @@ -7396,7 +7396,7 @@ Message from section two { 1, 2 } Equals: { 1, 2, 3 } - + empty, Equals( v ) @@ -7404,7 +7404,7 @@ Message from section two { } Equals: { 1, 2, 3 } - + v, Equals( empty ) @@ -7416,8 +7416,8 @@ Message from section two
- - + + thisThrows(), std::domain_error @@ -7425,7 +7425,7 @@ Message from section two thisThrows(), std::domain_error - + thisDoesntThrow() @@ -7433,7 +7433,7 @@ Message from section two thisDoesntThrow() - + thisThrows() @@ -7443,93 +7443,93 @@ Message from section two - - + + unexpected exception - - + + thisThrows() == 0 thisThrows() == 0 - + expected exception - - + + thisThrows() == 0 thisThrows() == 0 - + expected exception - - + + thisThrows() == 0 thisThrows() == 0 - + expected exception - -
- + +
+ unexpected exception
- + - + Uncomment the code in this test to check that it gives a sensible compiler error - + Uncomment the code in this test to check that it gives a sensible compiler error - + - + - + - + - -
- + +
+ encode( "normal string" ) == "normal string" @@ -7539,8 +7539,8 @@ Message from section two
-
- +
+ encode( "" ) == "" @@ -7550,8 +7550,8 @@ Message from section two
-
- +
+ encode( "smith & jones" ) == "smith &amp; jones" @@ -7561,8 +7561,8 @@ Message from section two
-
- +
+ encode( "smith < jones" ) == "smith &lt; jones" @@ -7572,8 +7572,8 @@ Message from section two
-
- +
+ encode( "smith > jones" ) == "smith > jones" @@ -7581,7 +7581,7 @@ Message from section two "smith > jones" == "smith > jones" - + encode( "smith ]]> jones" ) == "smith ]]&gt; jones" @@ -7593,8 +7593,8 @@ Message from section two
-
- +
+ encode( stringWithQuotes ) == stringWithQuotes @@ -7604,7 +7604,7 @@ Message from section two "don't "quote" me on that" - + encode( stringWithQuotes, Catch::XmlEncode::ForAttributes ) == "don't &quot;quote&quot; me on that" @@ -7616,8 +7616,8 @@ Message from section two
-
- +
+ encode( "[\x01]" ) == "[\\x01]" @@ -7627,8 +7627,8 @@ Message from section two
-
- +
+ encode( "[\x7F]" ) == "[\\x7F]" @@ -7640,8 +7640,8 @@ Message from section two
- - + + x == 0 @@ -7651,8 +7651,8 @@ Message from section two - - + + obj.prop != 0 @@ -7662,8 +7662,8 @@ Message from section two - - + + flag @@ -7671,7 +7671,7 @@ Message from section two true - + testCheckedElse( true ) @@ -7681,8 +7681,8 @@ Message from section two - - + + flag @@ -7690,7 +7690,7 @@ Message from section two false - + testCheckedElse( false ) @@ -7700,8 +7700,8 @@ Message from section two - - + + flag @@ -7709,7 +7709,7 @@ Message from section two true - + testCheckedIf( true ) @@ -7719,8 +7719,8 @@ Message from section two - - + + flag @@ -7728,7 +7728,7 @@ Message from section two false - + testCheckedIf( false ) @@ -7738,8 +7738,8 @@ Message from section two - - + + unsigned_char_var == 1 @@ -7747,7 +7747,7 @@ Message from section two 1 == 1 - + unsigned_short_var == 1 @@ -7755,7 +7755,7 @@ Message from section two 1 == 1 - + unsigned_int_var == 1 @@ -7763,7 +7763,7 @@ Message from section two 1 == 1 - + unsigned_long_var == 1 @@ -7773,8 +7773,8 @@ Message from section two - - + + long_var == unsigned_char_var @@ -7782,7 +7782,7 @@ Message from section two 1 == 1 - + long_var == unsigned_short_var @@ -7790,7 +7790,7 @@ Message from section two 1 == 1 - + long_var == unsigned_int_var @@ -7798,7 +7798,7 @@ Message from section two 1 == 1 - + long_var == unsigned_long_var @@ -7808,42 +7808,42 @@ Message from section two - -
-
+ +
+
-
-
+
+
-
+
- + - + loose text artifact - - + + Previous info should not be seen - + - - + + l == std::numeric_limits<long long>::max() @@ -7855,9 +7855,9 @@ loose text artifact - -
- + +
+ b > a @@ -7869,11 +7869,11 @@ loose text artifact
- + Testing if fib[0] (1) is even - + ( fib[i] % 2 ) == 0 @@ -7884,7 +7884,7 @@ loose text artifact Testing if fib[1] (1) is even - + ( fib[i] % 2 ) == 0 @@ -7895,7 +7895,7 @@ loose text artifact Testing if fib[2] (2) is even - + ( fib[i] % 2 ) == 0 @@ -7906,7 +7906,7 @@ loose text artifact Testing if fib[3] (3) is even - + ( fib[i] % 2 ) == 0 @@ -7917,7 +7917,7 @@ loose text artifact Testing if fib[4] (5) is even - + ( fib[i] % 2 ) == 0 @@ -7928,7 +7928,7 @@ loose text artifact Testing if fib[5] (8) is even - + ( fib[i] % 2 ) == 0 @@ -7939,7 +7939,7 @@ loose text artifact Testing if fib[6] (13) is even - + ( fib[i] % 2 ) == 0 @@ -7950,7 +7950,7 @@ loose text artifact Testing if fib[7] (21) is even - + ( fib[i] % 2 ) == 0 @@ -7960,10 +7960,10 @@ loose text artifact - -
-
- + +
+
+ a == b @@ -7975,9 +7975,9 @@ loose text artifact
-
-
- +
+
+ a != b @@ -7989,9 +7989,9 @@ loose text artifact
-
-
- +
+
+ a < b @@ -8005,9 +8005,9 @@ loose text artifact
- -
- + +
+ a != b @@ -8015,7 +8015,7 @@ loose text artifact 1 != 2 - + b != a @@ -8023,8 +8023,8 @@ loose text artifact 2 != 1 -
- +
+ a != b @@ -8038,8 +8038,8 @@ loose text artifact
- - + + s == "7" @@ -8049,8 +8049,8 @@ loose text artifact - - + + ti == typeid(int) @@ -8060,11 +8060,11 @@ loose text artifact - + - - + + makeString( false ) != static_cast<char*>(0) @@ -8072,7 +8072,7 @@ loose text artifact "valid string" != {null string} - + makeString( true ) == static_cast<char*>(0) @@ -8082,8 +8082,8 @@ loose text artifact - - + + ptr.get() == 0 @@ -8093,8 +8093,8 @@ loose text artifact - - + + ::Catch::Detail::stringify( pair ) == "{ { 42, \"Arthur\" }, { \"Ford\", 24 } }" @@ -8106,8 +8106,8 @@ loose text artifact - - + + p == 0 @@ -8117,9 +8117,9 @@ loose text artifact - -
- + +
+ a != b @@ -8127,7 +8127,7 @@ loose text artifact 1 != 2 - + b != a @@ -8137,8 +8137,8 @@ loose text artifact
-
- +
+ a != b @@ -8150,9 +8150,9 @@ loose text artifact
- -
- + +
+ Catch::replaceInPlace( letters, "b", "z" ) @@ -8160,7 +8160,7 @@ loose text artifact true - + letters == "azcdefcg" @@ -8170,8 +8170,8 @@ loose text artifact
-
- +
+ Catch::replaceInPlace( letters, "c", "z" ) @@ -8179,7 +8179,7 @@ loose text artifact true - + letters == "abzdefzg" @@ -8189,8 +8189,8 @@ loose text artifact
-
- +
+ Catch::replaceInPlace( letters, "a", "z" ) @@ -8198,7 +8198,7 @@ loose text artifact true - + letters == "zbcdefcg" @@ -8208,8 +8208,8 @@ loose text artifact
-
- +
+ Catch::replaceInPlace( letters, "g", "z" ) @@ -8217,7 +8217,7 @@ loose text artifact true - + letters == "abcdefcz" @@ -8227,8 +8227,8 @@ loose text artifact
-
- +
+ Catch::replaceInPlace( letters, letters, "replaced" ) @@ -8236,7 +8236,7 @@ loose text artifact true - + letters == "replaced" @@ -8246,8 +8246,8 @@ loose text artifact
-
- +
+ !(Catch::replaceInPlace( letters, "x", "z" )) @@ -8255,7 +8255,7 @@ loose text artifact !false - + letters == letters @@ -8265,8 +8265,8 @@ loose text artifact
-
- +
+ Catch::replaceInPlace( s, "'", "|'" ) @@ -8274,7 +8274,7 @@ loose text artifact true - + s == "didn|'t" @@ -8286,14 +8286,14 @@ loose text artifact
- + - + 3 - + false @@ -8303,14 +8303,14 @@ loose text artifact - + hi i := 7 - + false @@ -8320,8 +8320,8 @@ loose text artifact - - + + ::Catch::Detail::stringify(value) == "{ 34, \"xyzzy\" }" @@ -8331,8 +8331,8 @@ loose text artifact - - + + ::Catch::Detail::stringify( value ) == "{ 34, \"xyzzy\" }" @@ -8342,8 +8342,8 @@ loose text artifact - - + + ::Catch::Detail::stringify( pr ) == "{ { \"green\", 55 } }" @@ -8355,8 +8355,8 @@ loose text artifact - - + + std::string( "first" ) == "second" @@ -8366,8 +8366,8 @@ loose text artifact - - + + ::Catch::Detail::stringify( item ) == "StringMaker<has_maker>" @@ -8379,8 +8379,8 @@ loose text artifact - - + + ::Catch::Detail::stringify( item ) == "StringMaker<has_maker_and_operator>" @@ -8392,8 +8392,8 @@ loose text artifact - - + + ::Catch::Detail::stringify( item ) == "operator<<( has_operator )" @@ -8405,8 +8405,8 @@ loose text artifact - - + + result == "\"wide load\"" @@ -8416,8 +8416,8 @@ loose text artifact - - + + result == "\"wide load\"" @@ -8427,8 +8427,8 @@ loose text artifact - - + + result == "\"wide load\"" @@ -8438,8 +8438,8 @@ loose text artifact - - + + result == "\"wide load\"" @@ -8449,8 +8449,8 @@ loose text artifact - - + + ::Catch::Detail::stringify( v ) == "{ StringMaker<has_maker> }" @@ -8462,8 +8462,8 @@ loose text artifact - - + + ::Catch::Detail::stringify(e0) == "E2/V0" @@ -8471,7 +8471,7 @@ loose text artifact "E2/V0" == "E2/V0" - + ::Catch::Detail::stringify(e1) == "E2/V1" @@ -8479,7 +8479,7 @@ loose text artifact "E2/V1" == "E2/V1" - + ::Catch::Detail::stringify(e3) == "Unknown enum value 10" @@ -8491,8 +8491,8 @@ loose text artifact - - + + ::Catch::Detail::stringify(e0) == "0" @@ -8500,7 +8500,7 @@ loose text artifact "{?}" == "0" - + ::Catch::Detail::stringify(e1) == "1" @@ -8510,8 +8510,8 @@ loose text artifact - - + + ::Catch::Detail::stringify(e0) == "E2{0}" @@ -8519,7 +8519,7 @@ loose text artifact "E2{0}" == "E2{0}" - + ::Catch::Detail::stringify(e1) == "E2{1}" @@ -8529,8 +8529,8 @@ loose text artifact - - + + ::Catch::Detail::stringify(e0) == "0" @@ -8538,7 +8538,7 @@ loose text artifact "0" == "0" - + ::Catch::Detail::stringify(e1) == "1" @@ -8548,8 +8548,8 @@ loose text artifact - - + + "{ }" == ::Catch::Detail::stringify(type{}) @@ -8557,7 +8557,7 @@ loose text artifact "{ }" == "{ }" - + "{ }" == ::Catch::Detail::stringify(value) @@ -8567,8 +8567,8 @@ loose text artifact - - + + "1.2f" == ::Catch::Detail::stringify(float(1.2)) @@ -8576,7 +8576,7 @@ loose text artifact "1.2f" == "1.2f" - + "{ 1.2f, 0 }" == ::Catch::Detail::stringify(type{1.2f,0}) @@ -8586,8 +8586,8 @@ loose text artifact - - + + "{ 0 }" == ::Catch::Detail::stringify(type{0}) @@ -8597,8 +8597,8 @@ loose text artifact - - + + "{ 0, 42, \"Catch me\" }" == ::Catch::Detail::stringify(value) @@ -8610,8 +8610,8 @@ loose text artifact - - + + "{ \"hello\", \"world\" }" == ::Catch::Detail::stringify(type{"hello","world"}) @@ -8623,8 +8623,8 @@ loose text artifact - - + + "{ { 42 }, { }, 1.2f }" == ::Catch::Detail::stringify(value) @@ -8636,8 +8636,8 @@ loose text artifact - - + + ::Catch::Detail::stringify(v) == "{ }" @@ -8645,7 +8645,7 @@ loose text artifact "{ }" == "{ }" - + ::Catch::Detail::stringify(v) == "{ { \"hello\" }, { \"world\" } }" @@ -8657,8 +8657,8 @@ loose text artifact - - + + ::Catch::Detail::stringify(vv) == "{ }" @@ -8666,7 +8666,7 @@ loose text artifact "{ }" == "{ }" - + ::Catch::Detail::stringify(vv) == "{ 42 }" @@ -8674,7 +8674,7 @@ loose text artifact "{ 42 }" == "{ 42 }" - + ::Catch::Detail::stringify(vv) == "{ 42, 250 }" @@ -8684,8 +8684,8 @@ loose text artifact - - + + ::Catch::Detail::stringify(vv) == "{ }" @@ -8693,7 +8693,7 @@ loose text artifact "{ }" == "{ }" - + ::Catch::Detail::stringify(vv) == "{ 42 }" @@ -8701,7 +8701,7 @@ loose text artifact "{ 42 }" == "{ 42 }" - + ::Catch::Detail::stringify(vv) == "{ 42, 250 }" @@ -8711,8 +8711,8 @@ loose text artifact - - + + ::Catch::Detail::stringify(vv) == "{ }" @@ -8720,7 +8720,7 @@ loose text artifact "{ }" == "{ }" - + ::Catch::Detail::stringify(vv) == "{ \"hello\" }" @@ -8728,7 +8728,7 @@ loose text artifact "{ "hello" }" == "{ "hello" }" - + ::Catch::Detail::stringify(vv) == "{ \"hello\", \"world\" }" @@ -8740,8 +8740,8 @@ loose text artifact - - + + v.size() == 5 @@ -8749,7 +8749,7 @@ loose text artifact 5 == 5 - + v.capacity() >= 5 @@ -8757,8 +8757,8 @@ loose text artifact 5 >= 5 -
- +
+ v.size() == 10 @@ -8766,7 +8766,7 @@ loose text artifact 10 == 10 - + v.capacity() >= 10 @@ -8776,7 +8776,7 @@ loose text artifact
- + v.size() == 5 @@ -8784,7 +8784,7 @@ loose text artifact 5 == 5 - + v.capacity() >= 5 @@ -8792,8 +8792,8 @@ loose text artifact 5 >= 5 -
- +
+ v.size() == 0 @@ -8801,7 +8801,7 @@ loose text artifact 0 == 0 - + v.capacity() >= 5 @@ -8809,8 +8809,8 @@ loose text artifact 5 >= 5 -
- +
+ v.capacity() == 0 @@ -8822,7 +8822,7 @@ loose text artifact
- + v.size() == 5 @@ -8830,7 +8830,7 @@ loose text artifact 5 == 5 - + v.capacity() >= 5 @@ -8838,8 +8838,8 @@ loose text artifact 5 >= 5 -
- +
+ v.size() == 5 @@ -8847,7 +8847,7 @@ loose text artifact 5 == 5 - + v.capacity() >= 10 @@ -8857,7 +8857,7 @@ loose text artifact
- + v.size() == 5 @@ -8865,7 +8865,7 @@ loose text artifact 5 == 5 - + v.capacity() >= 5 @@ -8873,8 +8873,8 @@ loose text artifact 5 >= 5 -
- +
+ v.size() == 5 @@ -8882,7 +8882,7 @@ loose text artifact 5 == 5 - + v.capacity() >= 5 @@ -8894,11 +8894,11 @@ loose text artifact
- -
+ +
-
+
diff --git a/projects/SelfTest/IntrospectiveTests/CmdLineTests.cpp b/projects/SelfTest/IntrospectiveTests/CmdLine.tests.cpp similarity index 65% rename from projects/SelfTest/IntrospectiveTests/CmdLineTests.cpp rename to projects/SelfTest/IntrospectiveTests/CmdLine.tests.cpp index c375d41b..a0735852 100644 --- a/projects/SelfTest/IntrospectiveTests/CmdLineTests.cpp +++ b/projects/SelfTest/IntrospectiveTests/CmdLine.tests.cpp @@ -8,6 +8,8 @@ #include "catch.hpp" #include "internal/catch_test_spec_parser.h" +#include "internal/catch_config.hpp" +#include "internal/catch_commandline.h" #ifdef __clang__ # pragma clang diagnostic ignored "-Wc++98-compat" @@ -262,3 +264,194 @@ TEST_CASE( "Parse test names and tags" ) { } } + +TEST_CASE( "Process can be configured on command line", "[config][command-line]" ) { + +#ifndef CATCH_CONFIG_DISABLE_MATCHERS + using namespace Catch::Matchers; +#endif + + Catch::ConfigData config; + auto cli = Catch::makeCommandLineParser(config); + + SECTION("empty args don't cause a crash") { + auto result = cli.parse({""}); + CHECK(result); + CHECK(config.processName == ""); + } + + + SECTION("default - no arguments") { + auto result = cli.parse({"test"}); + CHECK(result); + CHECK(config.processName == "test"); + CHECK(config.shouldDebugBreak == false); + CHECK(config.abortAfter == -1); + CHECK(config.noThrow == false); + CHECK(config.reporterNames.empty()); + } + + SECTION("test lists") { + SECTION("1 test", "Specify one test case using") { + auto result = cli.parse({"test", "test1"}); + CHECK(result); + + Catch::Config cfg(config); + REQUIRE(cfg.testSpec().matches(fakeTestCase("notIncluded")) == false); + REQUIRE(cfg.testSpec().matches(fakeTestCase("test1"))); + } + SECTION("Specify one test case exclusion using exclude:") { + auto result = cli.parse({"test", "exclude:test1"}); + CHECK(result); + + Catch::Config cfg(config); + REQUIRE(cfg.testSpec().matches(fakeTestCase("test1")) == false); + REQUIRE(cfg.testSpec().matches(fakeTestCase("alwaysIncluded"))); + } + + SECTION("Specify one test case exclusion using ~") { + auto result = cli.parse({"test", "~test1"}); + CHECK(result); + + Catch::Config cfg(config); + REQUIRE(cfg.testSpec().matches(fakeTestCase("test1")) == false); + REQUIRE(cfg.testSpec().matches(fakeTestCase("alwaysIncluded"))); + } + + } + + SECTION("reporter") { + SECTION("-r/console") { + CHECK(cli.parse({"test", "-r", "console"})); + + REQUIRE(config.reporterNames[0] == "console"); + } + SECTION("-r/xml") { + CHECK(cli.parse({"test", "-r", "xml"})); + + REQUIRE(config.reporterNames[0] == "xml"); + } + SECTION("-r xml and junit") { + CHECK(cli.parse({"test", "-r", "xml", "-r", "junit"})); + + REQUIRE(config.reporterNames.size() == 2); + REQUIRE(config.reporterNames[0] == "xml"); + REQUIRE(config.reporterNames[1] == "junit"); + } + SECTION("--reporter/junit") { + CHECK(cli.parse({"test", "--reporter", "junit"})); + + REQUIRE(config.reporterNames[0] == "junit"); + } + } + + + SECTION("debugger") { + SECTION("-b") { + CHECK(cli.parse({"test", "-b"})); + + REQUIRE(config.shouldDebugBreak == true); + } + SECTION("--break") { + CHECK(cli.parse({"test", "--break"})); + + REQUIRE(config.shouldDebugBreak); + } + } + + + SECTION("abort") { + SECTION("-a aborts after first failure") { + CHECK(cli.parse({"test", "-a"})); + + REQUIRE(config.abortAfter == 1); + } + SECTION("-x 2 aborts after two failures") { + CHECK(cli.parse({"test", "-x", "2"})); + + REQUIRE(config.abortAfter == 2); + } + SECTION("-x must be numeric") { + auto result = cli.parse({"test", "-x", "oops"}); + CHECK(!result); + +#ifndef CATCH_CONFIG_DISABLE_MATCHERS + REQUIRE_THAT(result.errorMessage(), Contains("convert") && Contains("oops")); +#endif + } + } + + SECTION("nothrow") { + SECTION("-e") { + CHECK(cli.parse({"test", "-e"})); + + REQUIRE(config.noThrow); + } + SECTION("--nothrow") { + CHECK(cli.parse({"test", "--nothrow"})); + + REQUIRE(config.noThrow); + } + } + + SECTION("output filename") { + SECTION("-o filename") { + CHECK(cli.parse({"test", "-o", "filename.ext"})); + + REQUIRE(config.outputFilename == "filename.ext"); + } + SECTION("--out") { + CHECK(cli.parse({"test", "--out", "filename.ext"})); + + REQUIRE(config.outputFilename == "filename.ext"); + } + } + + SECTION("combinations") { + SECTION("Single character flags can be combined") { + CHECK(cli.parse({"test", "-abe"})); + + CHECK(config.abortAfter == 1); + CHECK(config.shouldDebugBreak); + CHECK(config.noThrow == true); + } + } + + + SECTION( "use-colour") { + + using Catch::UseColour; + + SECTION( "without option" ) { + CHECK(cli.parse({"test"})); + + REQUIRE( config.useColour == UseColour::Auto ); + } + + SECTION( "auto" ) { + CHECK(cli.parse({"test", "--use-colour", "auto"})); + + REQUIRE( config.useColour == UseColour::Auto ); + } + + SECTION( "yes" ) { + CHECK(cli.parse({"test", "--use-colour", "yes"})); + + REQUIRE( config.useColour == UseColour::Yes ); + } + + SECTION( "no" ) { + CHECK(cli.parse({"test", "--use-colour", "no"})); + + REQUIRE( config.useColour == UseColour::No ); + } + + SECTION( "error" ) { + auto result = cli.parse({"test", "--use-colour", "wrong"}); + CHECK( !result ); +#ifndef CATCH_CONFIG_DISABLE_MATCHERS + CHECK_THAT( result.errorMessage(), Contains( "colour mode must be one of" ) ); +#endif + } + } +} diff --git a/projects/SelfTest/IntrospectiveTests/PartTrackerTests.cpp b/projects/SelfTest/IntrospectiveTests/PartTracker.tests.cpp similarity index 100% rename from projects/SelfTest/IntrospectiveTests/PartTrackerTests.cpp rename to projects/SelfTest/IntrospectiveTests/PartTracker.tests.cpp diff --git a/projects/SelfTest/IntrospectiveTests/StringRef.tests.cpp b/projects/SelfTest/IntrospectiveTests/String.tests.cpp similarity index 82% rename from projects/SelfTest/IntrospectiveTests/StringRef.tests.cpp rename to projects/SelfTest/IntrospectiveTests/String.tests.cpp index 763952ff..9c9c5599 100644 --- a/projects/SelfTest/IntrospectiveTests/StringRef.tests.cpp +++ b/projects/SelfTest/IntrospectiveTests/String.tests.cpp @@ -165,3 +165,36 @@ TEST_CASE( "StringRef", "[Strings]" ) { } } } + +TEST_CASE( "replaceInPlace" ) { + std::string letters = "abcdefcg"; + SECTION( "replace single char" ) { + CHECK( Catch::replaceInPlace( letters, "b", "z" ) ); + CHECK( letters == "azcdefcg" ); + } + SECTION( "replace two chars" ) { + CHECK( Catch::replaceInPlace( letters, "c", "z" ) ); + CHECK( letters == "abzdefzg" ); + } + SECTION( "replace first char" ) { + CHECK( Catch::replaceInPlace( letters, "a", "z" ) ); + CHECK( letters == "zbcdefcg" ); + } + SECTION( "replace last char" ) { + CHECK( Catch::replaceInPlace( letters, "g", "z" ) ); + CHECK( letters == "abcdefcz" ); + } + SECTION( "replace all chars" ) { + CHECK( Catch::replaceInPlace( letters, letters, "replaced" ) ); + CHECK( letters == "replaced" ); + } + SECTION( "replace no chars" ) { + CHECK_FALSE( Catch::replaceInPlace( letters, "x", "z" ) ); + CHECK( letters == letters ); + } + SECTION( "escape '" ) { + std::string s = "didn't"; + CHECK( Catch::replaceInPlace( s, "'", "|'" ) ); + CHECK( s == "didn|'t" ); + } +} diff --git a/projects/SelfTest/IntrospectiveTests/TagAliasTests.cpp b/projects/SelfTest/IntrospectiveTests/TagAlias.tests.cpp similarity index 100% rename from projects/SelfTest/IntrospectiveTests/TagAliasTests.cpp rename to projects/SelfTest/IntrospectiveTests/TagAlias.tests.cpp diff --git a/projects/SelfTest/IntrospectiveTests/TestMain.cpp b/projects/SelfTest/IntrospectiveTests/TestMain.cpp deleted file mode 100644 index cf574277..00000000 --- a/projects/SelfTest/IntrospectiveTests/TestMain.cpp +++ /dev/null @@ -1,268 +0,0 @@ -/* - * Created by Phil on 22/10/2010. - * Copyright 2010 Two Blue Cubes Ltd - * - * Distributed under the Boost Software License, Version 1.0. (See accompanying - * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) - */ - -#define CATCH_CONFIG_MAIN -#include "catch.hpp" -#include "reporters/catch_reporter_teamcity.hpp" -#include "reporters/catch_reporter_tap.hpp" -#include "reporters/catch_reporter_automake.hpp" - - -// Some example tag aliases -CATCH_REGISTER_TAG_ALIAS( "[@nhf]", "[failing]~[.]" ) -CATCH_REGISTER_TAG_ALIAS( "[@tricky]", "[tricky]~[.]" ) - - -#ifdef __clang__ -# pragma clang diagnostic ignored "-Wpadded" -# pragma clang diagnostic ignored "-Wweak-vtables" -# pragma clang diagnostic ignored "-Wc++98-compat" -#endif - -struct TestListener : Catch::TestEventListenerBase { - using TestEventListenerBase::TestEventListenerBase; // inherit constructor -}; -CATCH_REGISTER_LISTENER( TestListener ); - -inline Catch::TestCase fakeTestCase( const char* name, const char* desc = "" ){ return Catch::makeTestCase( nullptr, "", name, desc, CATCH_INTERNAL_LINEINFO ); } - -TEST_CASE( "Process can be configured on command line", "[config][command-line]" ) { - -#ifndef CATCH_CONFIG_DISABLE_MATCHERS - using namespace Catch::Matchers; -#endif - - Catch::ConfigData config; - auto cli = Catch::makeCommandLineParser(config); - - SECTION("empty args don't cause a crash") { - auto result = cli.parse({""}); - CHECK(result); - CHECK(config.processName == ""); - } - - - SECTION("default - no arguments") { - auto result = cli.parse({"test"}); - CHECK(result); - CHECK(config.processName == "test"); - CHECK(config.shouldDebugBreak == false); - CHECK(config.abortAfter == -1); - CHECK(config.noThrow == false); - CHECK(config.reporterNames.empty()); - } - - SECTION("test lists") { - SECTION("1 test", "Specify one test case using") { - auto result = cli.parse({"test", "test1"}); - CHECK(result); - - Catch::Config cfg(config); - REQUIRE(cfg.testSpec().matches(fakeTestCase("notIncluded")) == false); - REQUIRE(cfg.testSpec().matches(fakeTestCase("test1"))); - } - SECTION("Specify one test case exclusion using exclude:") { - auto result = cli.parse({"test", "exclude:test1"}); - CHECK(result); - - Catch::Config cfg(config); - REQUIRE(cfg.testSpec().matches(fakeTestCase("test1")) == false); - REQUIRE(cfg.testSpec().matches(fakeTestCase("alwaysIncluded"))); - } - - SECTION("Specify one test case exclusion using ~") { - auto result = cli.parse({"test", "~test1"}); - CHECK(result); - - Catch::Config cfg(config); - REQUIRE(cfg.testSpec().matches(fakeTestCase("test1")) == false); - REQUIRE(cfg.testSpec().matches(fakeTestCase("alwaysIncluded"))); - } - - } - - SECTION("reporter") { - SECTION("-r/console") { - CHECK(cli.parse({"test", "-r", "console"})); - - REQUIRE(config.reporterNames[0] == "console"); - } - SECTION("-r/xml") { - CHECK(cli.parse({"test", "-r", "xml"})); - - REQUIRE(config.reporterNames[0] == "xml"); - } - SECTION("-r xml and junit") { - CHECK(cli.parse({"test", "-r", "xml", "-r", "junit"})); - - REQUIRE(config.reporterNames.size() == 2); - REQUIRE(config.reporterNames[0] == "xml"); - REQUIRE(config.reporterNames[1] == "junit"); - } - SECTION("--reporter/junit") { - CHECK(cli.parse({"test", "--reporter", "junit"})); - - REQUIRE(config.reporterNames[0] == "junit"); - } - } - - - SECTION("debugger") { - SECTION("-b") { - CHECK(cli.parse({"test", "-b"})); - - REQUIRE(config.shouldDebugBreak == true); - } - SECTION("--break") { - CHECK(cli.parse({"test", "--break"})); - - REQUIRE(config.shouldDebugBreak); - } - } - - - SECTION("abort") { - SECTION("-a aborts after first failure") { - CHECK(cli.parse({"test", "-a"})); - - REQUIRE(config.abortAfter == 1); - } - SECTION("-x 2 aborts after two failures") { - CHECK(cli.parse({"test", "-x", "2"})); - - REQUIRE(config.abortAfter == 2); - } - SECTION("-x must be numeric") { - auto result = cli.parse({"test", "-x", "oops"}); - CHECK(!result); - -#ifndef CATCH_CONFIG_DISABLE_MATCHERS - REQUIRE_THAT(result.errorMessage(), Contains("convert") && Contains("oops")); -#endif - } - } - - SECTION("nothrow") { - SECTION("-e") { - CHECK(cli.parse({"test", "-e"})); - - REQUIRE(config.noThrow); - } - SECTION("--nothrow") { - CHECK(cli.parse({"test", "--nothrow"})); - - REQUIRE(config.noThrow); - } - } - - SECTION("output filename") { - SECTION("-o filename") { - CHECK(cli.parse({"test", "-o", "filename.ext"})); - - REQUIRE(config.outputFilename == "filename.ext"); - } - SECTION("--out") { - CHECK(cli.parse({"test", "--out", "filename.ext"})); - - REQUIRE(config.outputFilename == "filename.ext"); - } - } - - SECTION("combinations") { - SECTION("Single character flags can be combined") { - CHECK(cli.parse({"test", "-abe"})); - - CHECK(config.abortAfter == 1); - CHECK(config.shouldDebugBreak); - CHECK(config.noThrow == true); - } - } - - - SECTION( "use-colour") { - - using Catch::UseColour; - - SECTION( "without option" ) { - CHECK(cli.parse({"test"})); - - REQUIRE( config.useColour == UseColour::Auto ); - } - - SECTION( "auto" ) { - CHECK(cli.parse({"test", "--use-colour", "auto"})); - - REQUIRE( config.useColour == UseColour::Auto ); - } - - SECTION( "yes" ) { - CHECK(cli.parse({"test", "--use-colour", "yes"})); - - REQUIRE( config.useColour == UseColour::Yes ); - } - - SECTION( "no" ) { - CHECK(cli.parse({"test", "--use-colour", "no"})); - - REQUIRE( config.useColour == UseColour::No ); - } - - SECTION( "error" ) { - auto result = cli.parse({"test", "--use-colour", "wrong"}); - CHECK( !result ); -#ifndef CATCH_CONFIG_DISABLE_MATCHERS - CHECK_THAT( result.errorMessage(), Contains( "colour mode must be one of" ) ); -#endif - } - } -} - - -TEST_CASE( "replaceInPlace" ) { - std::string letters = "abcdefcg"; - SECTION( "replace single char" ) { - CHECK( Catch::replaceInPlace( letters, "b", "z" ) ); - CHECK( letters == "azcdefcg" ); - } - SECTION( "replace two chars" ) { - CHECK( Catch::replaceInPlace( letters, "c", "z" ) ); - CHECK( letters == "abzdefzg" ); - } - SECTION( "replace first char" ) { - CHECK( Catch::replaceInPlace( letters, "a", "z" ) ); - CHECK( letters == "zbcdefcg" ); - } - SECTION( "replace last char" ) { - CHECK( Catch::replaceInPlace( letters, "g", "z" ) ); - CHECK( letters == "abcdefcz" ); - } - SECTION( "replace all chars" ) { - CHECK( Catch::replaceInPlace( letters, letters, "replaced" ) ); - CHECK( letters == "replaced" ); - } - SECTION( "replace no chars" ) { - CHECK_FALSE( Catch::replaceInPlace( letters, "x", "z" ) ); - CHECK( letters == letters ); - } - SECTION( "escape '" ) { - std::string s = "didn't"; - CHECK( Catch::replaceInPlace( s, "'", "|'" ) ); - CHECK( s == "didn|'t" ); - } -} - - -inline void manuallyRegisteredTestFunction() { - SUCCEED( "was called" ); -} -struct AutoTestReg { - AutoTestReg() { - REGISTER_TEST_CASE( manuallyRegisteredTestFunction, "ManuallyRegistered" ); - } -}; -static AutoTestReg autoTestReg; diff --git a/projects/SelfTest/IntrospectiveTests/XmlTests.cpp b/projects/SelfTest/IntrospectiveTests/Xml.tests.cpp similarity index 100% rename from projects/SelfTest/IntrospectiveTests/XmlTests.cpp rename to projects/SelfTest/IntrospectiveTests/Xml.tests.cpp diff --git a/projects/SelfTest/TestMain.cpp b/projects/SelfTest/TestMain.cpp new file mode 100644 index 00000000..9b7c1c21 --- /dev/null +++ b/projects/SelfTest/TestMain.cpp @@ -0,0 +1,33 @@ +/* + * Created by Phil on 22/10/2010. + * Copyright 2010 Two Blue Cubes Ltd + * + * Distributed under the Boost Software License, Version 1.0. (See accompanying + * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) + */ + +#define CATCH_CONFIG_MAIN +#include "catch.hpp" + +// These reporters are not included in the single include, so must be included separately in the main file +#include "reporters/catch_reporter_teamcity.hpp" +#include "reporters/catch_reporter_tap.hpp" +#include "reporters/catch_reporter_automake.hpp" + + +// Some example tag aliases +CATCH_REGISTER_TAG_ALIAS( "[@nhf]", "[failing]~[.]" ) +CATCH_REGISTER_TAG_ALIAS( "[@tricky]", "[tricky]~[.]" ) + + +#ifdef __clang__ +# pragma clang diagnostic ignored "-Wpadded" +# pragma clang diagnostic ignored "-Wweak-vtables" +# pragma clang diagnostic ignored "-Wc++98-compat" +#endif + +struct TestListener : Catch::TestEventListenerBase { + using TestEventListenerBase::TestEventListenerBase; // inherit constructor +}; +CATCH_REGISTER_LISTENER( TestListener ); + diff --git a/projects/SelfTest/UsageTests/ApproxTests.cpp b/projects/SelfTest/UsageTests/Approx.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/ApproxTests.cpp rename to projects/SelfTest/UsageTests/Approx.tests.cpp diff --git a/projects/SelfTest/UsageTests/BDDTests.cpp b/projects/SelfTest/UsageTests/BDD.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/BDDTests.cpp rename to projects/SelfTest/UsageTests/BDD.tests.cpp diff --git a/projects/SelfTest/UsageTests/ClassTests.cpp b/projects/SelfTest/UsageTests/Class.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/ClassTests.cpp rename to projects/SelfTest/UsageTests/Class.tests.cpp diff --git a/projects/SelfTest/UsageTests/CompilationTests.cpp b/projects/SelfTest/UsageTests/Compilation.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/CompilationTests.cpp rename to projects/SelfTest/UsageTests/Compilation.tests.cpp diff --git a/projects/SelfTest/UsageTests/ConditionTests.cpp b/projects/SelfTest/UsageTests/Condition.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/ConditionTests.cpp rename to projects/SelfTest/UsageTests/Condition.tests.cpp diff --git a/projects/SelfTest/UsageTests/DecompositionTests.cpp b/projects/SelfTest/UsageTests/Decomposition.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/DecompositionTests.cpp rename to projects/SelfTest/UsageTests/Decomposition.tests.cpp diff --git a/projects/SelfTest/UsageTests/EnumToString.cpp b/projects/SelfTest/UsageTests/EnumToString.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/EnumToString.cpp rename to projects/SelfTest/UsageTests/EnumToString.tests.cpp diff --git a/projects/SelfTest/UsageTests/ExceptionTests.cpp b/projects/SelfTest/UsageTests/Exception.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/ExceptionTests.cpp rename to projects/SelfTest/UsageTests/Exception.tests.cpp diff --git a/projects/SelfTest/UsageTests/MatchersTests.cpp b/projects/SelfTest/UsageTests/Matchers.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/MatchersTests.cpp rename to projects/SelfTest/UsageTests/Matchers.tests.cpp diff --git a/projects/SelfTest/UsageTests/MessageTests.cpp b/projects/SelfTest/UsageTests/Message.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/MessageTests.cpp rename to projects/SelfTest/UsageTests/Message.tests.cpp diff --git a/projects/SelfTest/UsageTests/MiscTests.cpp b/projects/SelfTest/UsageTests/Misc.tests.cpp similarity index 97% rename from projects/SelfTest/UsageTests/MiscTests.cpp rename to projects/SelfTest/UsageTests/Misc.tests.cpp index 45e09cfa..b61a83a5 100644 --- a/projects/SelfTest/UsageTests/MiscTests.cpp +++ b/projects/SelfTest/UsageTests/Misc.tests.cpp @@ -330,3 +330,13 @@ TEST_CASE( "#961 -- Dynamically created sections should all be reported", "[.]" } } } + +inline void manuallyRegisteredTestFunction() { + SUCCEED( "was called" ); +} +struct AutoTestReg { + AutoTestReg() { + REGISTER_TEST_CASE( manuallyRegisteredTestFunction, "ManuallyRegistered" ); + } +}; +static AutoTestReg autoTestReg; diff --git a/projects/SelfTest/UsageTests/ToStringChrono.cpp b/projects/SelfTest/UsageTests/ToStringChrono.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/ToStringChrono.cpp rename to projects/SelfTest/UsageTests/ToStringChrono.tests.cpp diff --git a/projects/SelfTest/UsageTests/ToStringGeneralTests.cpp b/projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/ToStringGeneralTests.cpp rename to projects/SelfTest/UsageTests/ToStringGeneral.tests.cpp diff --git a/projects/SelfTest/UsageTests/ToStringPair.cpp b/projects/SelfTest/UsageTests/ToStringPair.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/ToStringPair.cpp rename to projects/SelfTest/UsageTests/ToStringPair.tests.cpp diff --git a/projects/SelfTest/UsageTests/ToStringTuple.cpp b/projects/SelfTest/UsageTests/ToStringTuple.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/ToStringTuple.cpp rename to projects/SelfTest/UsageTests/ToStringTuple.tests.cpp diff --git a/projects/SelfTest/UsageTests/ToStringVector.cpp b/projects/SelfTest/UsageTests/ToStringVector.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/ToStringVector.cpp rename to projects/SelfTest/UsageTests/ToStringVector.tests.cpp diff --git a/projects/SelfTest/UsageTests/ToStringWhich.cpp b/projects/SelfTest/UsageTests/ToStringWhich.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/ToStringWhich.cpp rename to projects/SelfTest/UsageTests/ToStringWhich.tests.cpp diff --git a/projects/SelfTest/UsageTests/TrickyTests.cpp b/projects/SelfTest/UsageTests/Tricky.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/TrickyTests.cpp rename to projects/SelfTest/UsageTests/Tricky.tests.cpp diff --git a/projects/SelfTest/UsageTests/VariadicMacrosTests.cpp b/projects/SelfTest/UsageTests/VariadicMacros.tests.cpp similarity index 100% rename from projects/SelfTest/UsageTests/VariadicMacrosTests.cpp rename to projects/SelfTest/UsageTests/VariadicMacros.tests.cpp