mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Cleanup WIP changes from last commit
This commit is contained in:
		| @@ -121,8 +121,6 @@ namespace Detail { | ||||
|  | ||||
|     } | ||||
|  | ||||
|  | ||||
|  | ||||
| } // end Detail namespace | ||||
|  | ||||
|  | ||||
|   | ||||
| @@ -153,6 +153,7 @@ Nor would this | ||||
| :test-result: PASS Exception matchers that succeed | ||||
| :test-result: PASS Exception message can be matched | ||||
| :test-result: PASS Exception messages can be tested for | ||||
| :test-result: PASS Exception thrown inside stringify does not fail the test | ||||
| :test-result: PASS Exceptions matchers | ||||
| :test-result: FAIL Expected exceptions that don't throw or unexpected exceptions fail the test | ||||
| :test-result: FAIL FAIL aborts the test | ||||
| @@ -248,7 +249,6 @@ Message from section two | ||||
| :test-result: PASS String matchers | ||||
| :test-result: PASS StringRef | ||||
| :test-result: PASS StringRef at compilation time | ||||
| :test-result: PASS Stringifying bla bla bla | ||||
| :test-result: PASS Stringifying char arrays with statically known sizes - char | ||||
| :test-result: PASS Stringifying char arrays with statically known sizes - signed char | ||||
| :test-result: PASS Stringifying char arrays with statically known sizes - unsigned char | ||||
|   | ||||
| @@ -151,6 +151,7 @@ | ||||
| :test-result: PASS Exception matchers that succeed | ||||
| :test-result: PASS Exception message can be matched | ||||
| :test-result: PASS Exception messages can be tested for | ||||
| :test-result: PASS Exception thrown inside stringify does not fail the test | ||||
| :test-result: PASS Exceptions matchers | ||||
| :test-result: FAIL Expected exceptions that don't throw or unexpected exceptions fail the test | ||||
| :test-result: FAIL FAIL aborts the test | ||||
| @@ -241,7 +242,6 @@ | ||||
| :test-result: PASS String matchers | ||||
| :test-result: PASS StringRef | ||||
| :test-result: PASS StringRef at compilation time | ||||
| :test-result: PASS Stringifying bla bla bla | ||||
| :test-result: PASS Stringifying char arrays with statically known sizes - char | ||||
| :test-result: PASS Stringifying char arrays with statically known sizes - signed char | ||||
| :test-result: PASS Stringifying char arrays with statically known sizes - unsigned char | ||||
|   | ||||
| @@ -635,6 +635,9 @@ Exception.tests.cpp:<line number>: passed: thisThrows(), StartsWith( "expected" | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), EndsWith( "exception" ) for: "expected exception" ends with: "exception" | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), ContainsSubstring( "except" ) for: "expected exception" contains: "except" | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), ContainsSubstring( "exCept", Catch::CaseSensitive::No ) for: "expected exception" contains: "except" (case insensitive) | ||||
| ToString.tests.cpp:<line number>: passed: tos == tos for: { stringification failed with an exception: "Invalid" } | ||||
| == | ||||
| { stringification failed with an exception: "Invalid" } | ||||
| Matchers.tests.cpp:<line number>: passed: throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) for: DerivedException::what exception message matches "DerivedException::what" | ||||
| Matchers.tests.cpp:<line number>: passed: throwsDerivedException(), DerivedException, !Message( "derivedexception::what" ) for: DerivedException::what not exception message matches "derivedexception::what" | ||||
| Matchers.tests.cpp:<line number>: passed: throwsSpecialException( 2 ), SpecialException, !Message( "DerivedException::what" ) for: SpecialException::what not exception message matches "DerivedException::what" | ||||
| @@ -1848,9 +1851,6 @@ String.tests.cpp:<line number>: passed: with 1 message: '!(sr1.empty())' | ||||
| String.tests.cpp:<line number>: passed: with 1 message: 'sr1.size() == 3' | ||||
| String.tests.cpp:<line number>: passed: with 1 message: 'sr2.empty()' | ||||
| String.tests.cpp:<line number>: passed: with 1 message: 'sr2.size() == 0' | ||||
| ToString.tests.cpp:<line number>: passed: tos == tos for: { stringification failed with an exception: "Invalid" } | ||||
| == | ||||
| { stringification failed with an exception: "Invalid" } | ||||
| ToString.tests.cpp:<line number>: passed: ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc"" | ||||
| ToString.tests.cpp:<line number>: passed: ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc"" | ||||
| ToString.tests.cpp:<line number>: passed: ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc"" | ||||
|   | ||||
| @@ -633,6 +633,9 @@ Exception.tests.cpp:<line number>: passed: thisThrows(), StartsWith( "expected" | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), EndsWith( "exception" ) for: "expected exception" ends with: "exception" | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), ContainsSubstring( "except" ) for: "expected exception" contains: "except" | ||||
| Exception.tests.cpp:<line number>: passed: thisThrows(), ContainsSubstring( "exCept", Catch::CaseSensitive::No ) for: "expected exception" contains: "except" (case insensitive) | ||||
| ToString.tests.cpp:<line number>: passed: tos == tos for: { stringification failed with an exception: "Invalid" } | ||||
| == | ||||
| { stringification failed with an exception: "Invalid" } | ||||
| Matchers.tests.cpp:<line number>: passed: throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) for: DerivedException::what exception message matches "DerivedException::what" | ||||
| Matchers.tests.cpp:<line number>: passed: throwsDerivedException(), DerivedException, !Message( "derivedexception::what" ) for: DerivedException::what not exception message matches "derivedexception::what" | ||||
| Matchers.tests.cpp:<line number>: passed: throwsSpecialException( 2 ), SpecialException, !Message( "DerivedException::what" ) for: SpecialException::what not exception message matches "DerivedException::what" | ||||
| @@ -1841,9 +1844,6 @@ String.tests.cpp:<line number>: passed: with 1 message: '!(sr1.empty())' | ||||
| String.tests.cpp:<line number>: passed: with 1 message: 'sr1.size() == 3' | ||||
| String.tests.cpp:<line number>: passed: with 1 message: 'sr2.empty()' | ||||
| String.tests.cpp:<line number>: passed: with 1 message: 'sr2.size() == 0' | ||||
| ToString.tests.cpp:<line number>: passed: tos == tos for: { stringification failed with an exception: "Invalid" } | ||||
| == | ||||
| { stringification failed with an exception: "Invalid" } | ||||
| ToString.tests.cpp:<line number>: passed: ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc"" | ||||
| ToString.tests.cpp:<line number>: passed: ::Catch::Detail::stringify( no_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc"" | ||||
| ToString.tests.cpp:<line number>: passed: ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc"" | ||||
|   | ||||
| @@ -4556,6 +4556,19 @@ Exception.tests.cpp:<line number>: PASSED: | ||||
| with expansion: | ||||
|   "expected exception" contains: "except" (case insensitive) | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Exception thrown inside stringify does not fail the test | ||||
| ------------------------------------------------------------------------------- | ||||
| ToString.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| ToString.tests.cpp:<line number>: PASSED: | ||||
|   CHECK( tos == tos ) | ||||
| with expansion: | ||||
|   { stringification failed with an exception: "Invalid" } | ||||
|   == | ||||
|   { stringification failed with an exception: "Invalid" } | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Exceptions matchers | ||||
| ------------------------------------------------------------------------------- | ||||
| @@ -11789,19 +11802,6 @@ String.tests.cpp:<line number>: PASSED: | ||||
| with message: | ||||
|   sr2.size() == 0 | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Stringifying bla bla bla | ||||
| ------------------------------------------------------------------------------- | ||||
| ToString.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| ToString.tests.cpp:<line number>: PASSED: | ||||
|   CHECK( tos == tos ) | ||||
| with expansion: | ||||
|   { stringification failed with an exception: "Invalid" } | ||||
|   == | ||||
|   { stringification failed with an exception: "Invalid" } | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Stringifying char arrays with statically known sizes - char | ||||
| ------------------------------------------------------------------------------- | ||||
|   | ||||
| @@ -4554,6 +4554,19 @@ Exception.tests.cpp:<line number>: PASSED: | ||||
| with expansion: | ||||
|   "expected exception" contains: "except" (case insensitive) | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Exception thrown inside stringify does not fail the test | ||||
| ------------------------------------------------------------------------------- | ||||
| ToString.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| ToString.tests.cpp:<line number>: PASSED: | ||||
|   CHECK( tos == tos ) | ||||
| with expansion: | ||||
|   { stringification failed with an exception: "Invalid" } | ||||
|   == | ||||
|   { stringification failed with an exception: "Invalid" } | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Exceptions matchers | ||||
| ------------------------------------------------------------------------------- | ||||
| @@ -11782,19 +11795,6 @@ String.tests.cpp:<line number>: PASSED: | ||||
| with message: | ||||
|   sr2.size() == 0 | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Stringifying bla bla bla | ||||
| ------------------------------------------------------------------------------- | ||||
| ToString.tests.cpp:<line number> | ||||
| ............................................................................... | ||||
|  | ||||
| ToString.tests.cpp:<line number>: PASSED: | ||||
|   CHECK( tos == tos ) | ||||
| with expansion: | ||||
|   { stringification failed with an exception: "Invalid" } | ||||
|   == | ||||
|   { stringification failed with an exception: "Invalid" } | ||||
|  | ||||
| ------------------------------------------------------------------------------- | ||||
| Stringifying char arrays with statically known sizes - char | ||||
| ------------------------------------------------------------------------------- | ||||
|   | ||||
| @@ -744,6 +744,7 @@ at Matchers.tests.cpp:<line number> | ||||
|     <testcase classname="<exe-name>.global" name="Exception messages can be tested for/exact match" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Exception messages can be tested for/different case" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Exception messages can be tested for/wildcarded" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Exception thrown inside stringify does not fail the test" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Exceptions matchers" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Expected exceptions that don't throw or unexpected exceptions fail the test" time="{duration}" status="run"> | ||||
|       <error message="thisThrows(), std::string" type="CHECK_THROWS_AS"> | ||||
| @@ -1511,7 +1512,6 @@ at Matchers.tests.cpp:<line number> | ||||
|     <testcase classname="<exe-name>.global" name="StringRef at compilation time" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="StringRef at compilation time/Simple constructors" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="StringRef at compilation time/UDL construction" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Stringifying bla bla bla" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Stringifying char arrays with statically known sizes - char" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Stringifying char arrays with statically known sizes - signed char" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Stringifying char arrays with statically known sizes - unsigned char" time="{duration}" status="run"/> | ||||
|   | ||||
| @@ -743,6 +743,7 @@ at Matchers.tests.cpp:<line number> | ||||
|     <testcase classname="<exe-name>.global" name="Exception messages can be tested for/exact match" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Exception messages can be tested for/different case" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Exception messages can be tested for/wildcarded" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Exception thrown inside stringify does not fail the test" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Exceptions matchers" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Expected exceptions that don't throw or unexpected exceptions fail the test" time="{duration}" status="run"> | ||||
|       <error message="thisThrows(), std::string" type="CHECK_THROWS_AS"> | ||||
| @@ -1510,7 +1511,6 @@ at Matchers.tests.cpp:<line number> | ||||
|     <testcase classname="<exe-name>.global" name="StringRef at compilation time" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="StringRef at compilation time/Simple constructors" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="StringRef at compilation time/UDL construction" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Stringifying bla bla bla" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Stringifying char arrays with statically known sizes - char" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Stringifying char arrays with statically known sizes - signed char" time="{duration}" status="run"/> | ||||
|     <testcase classname="<exe-name>.global" name="Stringifying char arrays with statically known sizes - unsigned char" time="{duration}" status="run"/> | ||||
|   | ||||
| @@ -387,8 +387,8 @@ at AssertionHandler.tests.cpp:<line number> | ||||
|   </file> | ||||
|   <file path="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp"> | ||||
|     <testCase name="Directly creating an EnumInfo" duration="{duration}"/> | ||||
|     <testCase name="Exception thrown inside stringify does not fail the test" duration="{duration}"/> | ||||
|     <testCase name="Range type with sentinel" duration="{duration}"/> | ||||
|     <testCase name="Stringifying bla bla bla" duration="{duration}"/> | ||||
|     <testCase name="Stringifying char arrays with statically known sizes - char" duration="{duration}"/> | ||||
|     <testCase name="Stringifying char arrays with statically known sizes - signed char" duration="{duration}"/> | ||||
|     <testCase name="Stringifying char arrays with statically known sizes - unsigned char" duration="{duration}"/> | ||||
|   | ||||
| @@ -386,8 +386,8 @@ at AssertionHandler.tests.cpp:<line number> | ||||
|   </file> | ||||
|   <file path="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp"> | ||||
|     <testCase name="Directly creating an EnumInfo" duration="{duration}"/> | ||||
|     <testCase name="Exception thrown inside stringify does not fail the test" duration="{duration}"/> | ||||
|     <testCase name="Range type with sentinel" duration="{duration}"/> | ||||
|     <testCase name="Stringifying bla bla bla" duration="{duration}"/> | ||||
|     <testCase name="Stringifying char arrays with statically known sizes - char" duration="{duration}"/> | ||||
|     <testCase name="Stringifying char arrays with statically known sizes - signed char" duration="{duration}"/> | ||||
|     <testCase name="Stringifying char arrays with statically known sizes - unsigned char" duration="{duration}"/> | ||||
|   | ||||
| @@ -1130,6 +1130,8 @@ ok {test-number} - thisThrows(), EndsWith( "exception" ) for: "expected exceptio | ||||
| ok {test-number} - thisThrows(), ContainsSubstring( "except" ) for: "expected exception" contains: "except" | ||||
| # Exception messages can be tested for | ||||
| ok {test-number} - thisThrows(), ContainsSubstring( "exCept", Catch::CaseSensitive::No ) for: "expected exception" contains: "except" (case insensitive) | ||||
| # Exception thrown inside stringify does not fail the test | ||||
| ok {test-number} - tos == tos for: { stringification failed with an exception: "Invalid" } == { stringification failed with an exception: "Invalid" } | ||||
| # Exceptions matchers | ||||
| ok {test-number} - throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) for: DerivedException::what exception message matches "DerivedException::what" | ||||
| # Exceptions matchers | ||||
| @@ -2803,8 +2805,6 @@ ok {test-number} - with 1 message: 'sr1.size() == 3' | ||||
| ok {test-number} - with 1 message: 'sr2.empty()' | ||||
| # StringRef at compilation time | ||||
| ok {test-number} - with 1 message: 'sr2.size() == 0' | ||||
| # Stringifying bla bla bla | ||||
| ok {test-number} - tos == tos for: { stringification failed with an exception: "Invalid" } == { stringification failed with an exception: "Invalid" } | ||||
| # Stringifying char arrays with statically known sizes - char | ||||
| ok {test-number} - ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc"" | ||||
| # Stringifying char arrays with statically known sizes - char | ||||
|   | ||||
| @@ -1128,6 +1128,8 @@ ok {test-number} - thisThrows(), EndsWith( "exception" ) for: "expected exceptio | ||||
| ok {test-number} - thisThrows(), ContainsSubstring( "except" ) for: "expected exception" contains: "except" | ||||
| # Exception messages can be tested for | ||||
| ok {test-number} - thisThrows(), ContainsSubstring( "exCept", Catch::CaseSensitive::No ) for: "expected exception" contains: "except" (case insensitive) | ||||
| # Exception thrown inside stringify does not fail the test | ||||
| ok {test-number} - tos == tos for: { stringification failed with an exception: "Invalid" } == { stringification failed with an exception: "Invalid" } | ||||
| # Exceptions matchers | ||||
| ok {test-number} - throwsDerivedException(), DerivedException, Message( "DerivedException::what" ) for: DerivedException::what exception message matches "DerivedException::what" | ||||
| # Exceptions matchers | ||||
| @@ -2796,8 +2798,6 @@ ok {test-number} - with 1 message: 'sr1.size() == 3' | ||||
| ok {test-number} - with 1 message: 'sr2.empty()' | ||||
| # StringRef at compilation time | ||||
| ok {test-number} - with 1 message: 'sr2.size() == 0' | ||||
| # Stringifying bla bla bla | ||||
| ok {test-number} - tos == tos for: { stringification failed with an exception: "Invalid" } == { stringification failed with an exception: "Invalid" } | ||||
| # Stringifying char arrays with statically known sizes - char | ||||
| ok {test-number} - ::Catch::Detail::stringify( with_null_terminator ) == R"("abc")"s for: ""abc"" == ""abc"" | ||||
| # Stringifying char arrays with statically known sizes - char | ||||
|   | ||||
| @@ -376,6 +376,8 @@ | ||||
| ##teamcity[testFinished name='Exception message can be matched' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Exception messages can be tested for'] | ||||
| ##teamcity[testFinished name='Exception messages can be tested for' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Exception thrown inside stringify does not fail the test'] | ||||
| ##teamcity[testFinished name='Exception thrown inside stringify does not fail the test' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Exceptions matchers'] | ||||
| ##teamcity[testFinished name='Exceptions matchers' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Expected exceptions that don|'t throw or unexpected exceptions fail the test'] | ||||
| @@ -617,8 +619,6 @@ | ||||
| ##teamcity[testFinished name='StringRef' duration="{duration}"] | ||||
| ##teamcity[testStarted name='StringRef at compilation time'] | ||||
| ##teamcity[testFinished name='StringRef at compilation time' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Stringifying bla bla bla'] | ||||
| ##teamcity[testFinished name='Stringifying bla bla bla' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Stringifying char arrays with statically known sizes - char'] | ||||
| ##teamcity[testFinished name='Stringifying char arrays with statically known sizes - char' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Stringifying char arrays with statically known sizes - signed char'] | ||||
|   | ||||
| @@ -376,6 +376,8 @@ | ||||
| ##teamcity[testFinished name='Exception message can be matched' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Exception messages can be tested for'] | ||||
| ##teamcity[testFinished name='Exception messages can be tested for' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Exception thrown inside stringify does not fail the test'] | ||||
| ##teamcity[testFinished name='Exception thrown inside stringify does not fail the test' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Exceptions matchers'] | ||||
| ##teamcity[testFinished name='Exceptions matchers' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Expected exceptions that don|'t throw or unexpected exceptions fail the test'] | ||||
| @@ -617,8 +619,6 @@ | ||||
| ##teamcity[testFinished name='StringRef' duration="{duration}"] | ||||
| ##teamcity[testStarted name='StringRef at compilation time'] | ||||
| ##teamcity[testFinished name='StringRef at compilation time' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Stringifying bla bla bla'] | ||||
| ##teamcity[testFinished name='Stringifying bla bla bla' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Stringifying char arrays with statically known sizes - char'] | ||||
| ##teamcity[testFinished name='Stringifying char arrays with statically known sizes - char' duration="{duration}"] | ||||
| ##teamcity[testStarted name='Stringifying char arrays with statically known sizes - signed char'] | ||||
|   | ||||
| @@ -5121,6 +5121,19 @@ Approx( 1.30000000000000004 ) | ||||
|     </Section> | ||||
|     <OverallResult success="true" skips="0"/> | ||||
|   </TestCase> | ||||
|   <TestCase name="Exception thrown inside stringify does not fail the test" tags="[toString]" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" > | ||||
|     <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" > | ||||
|       <Original> | ||||
|         tos == tos | ||||
|       </Original> | ||||
|       <Expanded> | ||||
|         { stringification failed with an exception: "Invalid" } | ||||
| == | ||||
| { stringification failed with an exception: "Invalid" } | ||||
|       </Expanded> | ||||
|     </Expression> | ||||
|     <OverallResult success="true" skips="0"/> | ||||
|   </TestCase> | ||||
|   <TestCase name="Exceptions matchers" tags="[!throws][exceptions][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" > | ||||
|     <Expression success="true" type="REQUIRE_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" > | ||||
|       <Original> | ||||
| @@ -13725,19 +13738,6 @@ Message from section two | ||||
|     </Section> | ||||
|     <OverallResult success="true" skips="0"/> | ||||
|   </TestCase> | ||||
|   <TestCase name="Stringifying bla bla bla" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" > | ||||
|     <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" > | ||||
|       <Original> | ||||
|         tos == tos | ||||
|       </Original> | ||||
|       <Expanded> | ||||
|         { stringification failed with an exception: "Invalid" } | ||||
| == | ||||
| { stringification failed with an exception: "Invalid" } | ||||
|       </Expanded> | ||||
|     </Expression> | ||||
|     <OverallResult success="true" skips="0"/> | ||||
|   </TestCase> | ||||
|   <TestCase name="Stringifying char arrays with statically known sizes - char" tags="[toString]" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" > | ||||
|     <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" > | ||||
|       <Original> | ||||
|   | ||||
| @@ -5121,6 +5121,19 @@ Approx( 1.30000000000000004 ) | ||||
|     </Section> | ||||
|     <OverallResult success="true" skips="0"/> | ||||
|   </TestCase> | ||||
|   <TestCase name="Exception thrown inside stringify does not fail the test" tags="[toString]" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" > | ||||
|     <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" > | ||||
|       <Original> | ||||
|         tos == tos | ||||
|       </Original> | ||||
|       <Expanded> | ||||
|         { stringification failed with an exception: "Invalid" } | ||||
| == | ||||
| { stringification failed with an exception: "Invalid" } | ||||
|       </Expanded> | ||||
|     </Expression> | ||||
|     <OverallResult success="true" skips="0"/> | ||||
|   </TestCase> | ||||
|   <TestCase name="Exceptions matchers" tags="[!throws][exceptions][matchers]" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" > | ||||
|     <Expression success="true" type="REQUIRE_THROWS_MATCHES" filename="tests/<exe-name>/UsageTests/Matchers.tests.cpp" > | ||||
|       <Original> | ||||
| @@ -13725,19 +13738,6 @@ Message from section two | ||||
|     </Section> | ||||
|     <OverallResult success="true" skips="0"/> | ||||
|   </TestCase> | ||||
|   <TestCase name="Stringifying bla bla bla" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" > | ||||
|     <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" > | ||||
|       <Original> | ||||
|         tos == tos | ||||
|       </Original> | ||||
|       <Expanded> | ||||
|         { stringification failed with an exception: "Invalid" } | ||||
| == | ||||
| { stringification failed with an exception: "Invalid" } | ||||
|       </Expanded> | ||||
|     </Expression> | ||||
|     <OverallResult success="true" skips="0"/> | ||||
|   </TestCase> | ||||
|   <TestCase name="Stringifying char arrays with statically known sizes - char" tags="[toString]" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" > | ||||
|     <Expression success="true" type="CHECK" filename="tests/<exe-name>/IntrospectiveTests/ToString.tests.cpp" > | ||||
|       <Original> | ||||
|   | ||||
| @@ -135,7 +135,7 @@ struct Catch::StringMaker<ThrowsOnStringification> { | ||||
|     } | ||||
| }; | ||||
|  | ||||
| TEST_CASE( "Stringifying bla bla bla" ) { | ||||
| TEST_CASE( "Exception thrown inside stringify does not fail the test", "[toString]" ) { | ||||
|     ThrowsOnStringification tos; | ||||
|     CHECK( tos == tos ); | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský