Progmasoft Git

catch3

Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.

Clonegit clone https://git.progmasoft.com/catch3

Approved new test case

Commit
14796814b8d1d3aeed59d4cc8ced8c072519c7a0
Author
Phil Nash ·
Parents
7cbf74061b5f

Files · Download .tar.gz

Changes

 projects/SelfTest/Baselines/console.std.approved.txt | 16 +++++++++++++++-
 projects/SelfTest/Baselines/console.sw.approved.txt  | 19 ++++++++++++++++++-
 projects/SelfTest/Baselines/junit.sw.approved.txt    |  3 ++-
 projects/SelfTest/Baselines/xml.sw.approved.txt      | 13 +++++++++++--
 4 files changed, 46 insertions(+), 5 deletions(-)

diff --git a/projects/SelfTest/Baselines/console.std.approved.txt b/projects/SelfTest/Baselines/console.std.approved.txt
index e3972bd8..3b33a28a 100644
--- a/projects/SelfTest/Baselines/console.std.approved.txt
+++ b/projects/SelfTest/Baselines/console.std.approved.txt
@@ -520,6 +520,20 @@ with messages:
   hi
   i := 7
 
+-------------------------------------------------------------------------------
+Pointers can be converted to strings
+-------------------------------------------------------------------------------
+MessageTests.cpp:<line number>
+...............................................................................
+
+MessageTests.cpp:<line number>:
+warning:
+  actual address of p: 0x<hex digits>
+
+MessageTests.cpp:<line number>:
+warning:
+  toString(p): 0x<hex digits>
+
 -------------------------------------------------------------------------------
 more nested SECTION tests
   s1
@@ -772,5 +786,5 @@ with expansion:
   "first" == "second"
 
 ===============================================================================
-123 test cases - 39 failed (695 assertions - 92 failed)
+124 test cases - 39 failed (695 assertions - 92 failed)
 
diff --git a/projects/SelfTest/Baselines/console.sw.approved.txt b/projects/SelfTest/Baselines/console.sw.approved.txt
index 74803d0d..3a56e6a2 100644
--- a/projects/SelfTest/Baselines/console.sw.approved.txt
+++ b/projects/SelfTest/Baselines/console.sw.approved.txt
@@ -2809,6 +2809,23 @@ with messages:
   hi
   i := 7
 
+-------------------------------------------------------------------------------
+Pointers can be converted to strings
+-------------------------------------------------------------------------------
+MessageTests.cpp:<line number>
+...............................................................................
+
+MessageTests.cpp:<line number>:
+warning:
+  actual address of p: 0x<hex digits>
+
+MessageTests.cpp:<line number>:
+warning:
+  toString(p): 0x<hex digits>
+
+
+No assertions in test case 'Pointers can be converted to strings'
+
 -------------------------------------------------------------------------------
 random SECTION tests
   s1
@@ -7214,5 +7231,5 @@ with expansion:
   true
 
 ===============================================================================
-123 test cases - 54 failed (714 assertions - 111 failed)
+124 test cases - 55 failed (715 assertions - 112 failed)
 
diff --git a/projects/SelfTest/Baselines/junit.sw.approved.txt b/projects/SelfTest/Baselines/junit.sw.approved.txt
index 002aa7d3..fe7e7645 100644
--- a/projects/SelfTest/Baselines/junit.sw.approved.txt
+++ b/projects/SelfTest/Baselines/junit.sw.approved.txt
@@ -1,5 +1,5 @@
 <testsuites>
-  <testsuite errors="12" failures="99" tests="714" hostname="tbd" time="{duration}" timestamp="tbd">
+  <testsuite errors="12" failures="100" tests="715" hostname="tbd" time="{duration}" timestamp="tbd">
     <testcase classname="global" name="Some simple comparisons between doubles" time="{duration}"/>
     <testcase classname="global" name="Approximate comparisons with different epsilons" time="{duration}"/>
     <testcase classname="global" name="Approximate comparisons with floats" time="{duration}"/>
@@ -319,6 +319,7 @@ i := 7
 MessageTests.cpp:<line number>
       </failure>
     </testcase>
+    <testcase classname="global" name="Pointers can be converted to strings" time="{duration}"/>
     <testcase classname="random SECTION tests" name="s1" time="{duration}"/>
     <testcase classname="random SECTION tests" name="s2" time="{duration}"/>
     <testcase classname="nested SECTION tests" name="s1" time="{duration}"/>
diff --git a/projects/SelfTest/Baselines/xml.sw.approved.txt b/projects/SelfTest/Baselines/xml.sw.approved.txt
index 8e80a5db..f6249b17 100644
--- a/projects/SelfTest/Baselines/xml.sw.approved.txt
+++ b/projects/SelfTest/Baselines/xml.sw.approved.txt
@@ -2923,6 +2923,15 @@
       </Expression>
       <OverallResult success="false"/>
     </TestCase>
+    <TestCase name="Pointers can be converted to strings">
+      <Warning>
+        actual address of p: 0x<hex digits>
+      </Warning>
+      <Warning>
+        toString(p): 0x<hex digits>
+      </Warning>
+      <OverallResult success="true"/>
+    </TestCase>
     <TestCase name="random SECTION tests">
       <Section name="s1" description="doesn't equal">
         <Expression success="true" filename="/Users/philnash/Dev/OSS/Catch/projects/SelfTest/MiscTests.cpp" >
@@ -7474,7 +7483,7 @@ there&quot;
       </Section>
       <OverallResult success="true"/>
     </TestCase>
-    <OverallResults successes="603" failures="111"/>
+    <OverallResults successes="603" failures="112"/>
   </Group>
-  <OverallResults successes="603" failures="111"/>
+  <OverallResults successes="603" failures="112"/>
 </Catch>