Added _THROWS_WITH macros
- asserts on exception message
diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt
index 974559a..01144a0 100644
--- a/projects/SelfTest/Baselines/xml.sw.approved.txt
+++ b/projects/SelfTest/Baselines/xml.sw.approved.txt
@@ -1596,6 +1596,25 @@
</Expression>
<OverallResult success="true"/>
</TestCase>
+ <TestCase name="Exception messages can be tested for">
+ <Expression success="true" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
+ <Original>
+ thisThrows(), "expected exception"
+ </Original>
+ <Expanded>
+ thisThrows(), "expected exception"
+ </Expanded>
+ </Expression>
+ <Expression success="false" type="REQUIRE_THROWS_WITH" filename="projects/SelfTest/ExceptionTests.cpp" >
+ <Original>
+ thisThrows(), "should fail"
+ </Original>
+ <Expanded>
+ expected exception
+ </Expanded>
+ </Expression>
+ <OverallResult success="false"/>
+ </TestCase>
<TestCase name="Generators over two ranges">
<Expression success="true" type="CATCH_REQUIRE" filename="projects/SelfTest/GeneratorTests.cpp" >
<Original>
@@ -8220,7 +8239,7 @@
</Section>
<OverallResult success="true"/>
</TestCase>
- <OverallResults successes="673" failures="99" expectedFailures="13"/>
+ <OverallResults successes="674" failures="100" expectedFailures="13"/>
</Group>
- <OverallResults successes="673" failures="99" expectedFailures="13"/>
+ <OverallResults successes="674" failures="100" expectedFailures="13"/>
</Catch>