Skip to content

Commit bbeb192

Browse files
committed
Updated baselines
1 parent e4f4335 commit bbeb192

File tree

4 files changed

+87
-7
lines changed

4 files changed

+87
-7
lines changed

projects/SelfTest/Baselines/console.std.approved.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -890,6 +890,6 @@ with expansion:
890890
"first" == "second"
891891

892892
===============================================================================
893-
test cases: 162 | 117 passed | 43 failed | 2 failed as expected
894-
assertions: 948 | 844 passed | 86 failed | 18 failed as expected
893+
test cases: 163 | 118 passed | 43 failed | 2 failed as expected
894+
assertions: 953 | 849 passed | 86 failed | 18 failed as expected
895895

projects/SelfTest/Baselines/console.sw.approved.txt

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,42 @@ TrickyTests.cpp:<line number>: FAILED:
304304
with expansion:
305305
{?} == {?}
306306

307+
-------------------------------------------------------------------------------
308+
Absolute margin
309+
-------------------------------------------------------------------------------
310+
ApproxTests.cpp:<line number>
311+
...............................................................................
312+
313+
ApproxTests.cpp:<line number>:
314+
PASSED:
315+
REQUIRE( 104.0 != Approx(100.0) )
316+
with expansion:
317+
104.0 != Approx( 100.0 )
318+
319+
ApproxTests.cpp:<line number>:
320+
PASSED:
321+
REQUIRE( 104.0 == Approx(100.0).margin(5) )
322+
with expansion:
323+
104.0 == Approx( 100.0 )
324+
325+
ApproxTests.cpp:<line number>:
326+
PASSED:
327+
REQUIRE( 104.0 != Approx(100.0).margin(3) )
328+
with expansion:
329+
104.0 != Approx( 100.0 )
330+
331+
ApproxTests.cpp:<line number>:
332+
PASSED:
333+
REQUIRE( 100.3 != Approx(100.0) )
334+
with expansion:
335+
100.3 != Approx( 100.0 )
336+
337+
ApproxTests.cpp:<line number>:
338+
PASSED:
339+
REQUIRE( 100.3 == Approx(100.0).margin(0.5) )
340+
with expansion:
341+
100.3 == Approx( 100.0 )
342+
307343
-------------------------------------------------------------------------------
308344
AllOf matcher
309345
-------------------------------------------------------------------------------
@@ -9288,6 +9324,6 @@ MiscTests.cpp:<line number>:
92889324
PASSED:
92899325

92909326
===============================================================================
9291-
test cases: 162 | 116 passed | 44 failed | 2 failed as expected
9292-
assertions: 950 | 844 passed | 88 failed | 18 failed as expected
9327+
test cases: 163 | 117 passed | 44 failed | 2 failed as expected
9328+
assertions: 955 | 849 passed | 88 failed | 18 failed as expected
92939329

projects/SelfTest/Baselines/junit.sw.approved.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<testsuitesspanner>
3-
<testsuite name="<exe-name>" errors="13" failures="76" tests="951" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
3+
<testsuite name="<exe-name>" errors="13" failures="76" tests="956" hostname="tbd" time="{duration}" timestamp="{iso8601-timestamp}">
44
<testcase classname="global" name="# A test name that starts with a #" time="{duration}"/>
55
<testcase classname="global" name="#542" time="{duration}"/>
66
<testcase classname="global" name="#809" time="{duration}"/>
@@ -63,6 +63,7 @@ TrickyTests.cpp:<line number>
6363
TrickyTests.cpp:<line number>
6464
</failure>
6565
</testcase>
66+
<testcase classname="global" name="Absolute margin" time="{duration}"/>
6667
<testcase classname="global" name="AllOf matcher" time="{duration}"/>
6768
<testcase classname="global" name="An expression with side-effects should only be evaluated once" time="{duration}"/>
6869
<testcase classname="global" name="An unchecked exception reports the line of the last assertion" time="{duration}">

projects/SelfTest/Baselines/xml.sw.approved.txt

Lines changed: 45 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -341,6 +341,49 @@
341341
</Expression>
342342
<OverallResult success="false"/>
343343
</TestCase>
344+
<TestCase name="Absolute margin" tags="[Approx]" filename="projects/<exe-name>/ApproxTests.cpp" >
345+
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" >
346+
<Original>
347+
104.0 != Approx(100.0)
348+
</Original>
349+
<Expanded>
350+
104.0 != Approx( 100.0 )
351+
</Expanded>
352+
</Expression>
353+
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" >
354+
<Original>
355+
104.0 == Approx(100.0).margin(5)
356+
</Original>
357+
<Expanded>
358+
104.0 == Approx( 100.0 )
359+
</Expanded>
360+
</Expression>
361+
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" >
362+
<Original>
363+
104.0 != Approx(100.0).margin(3)
364+
</Original>
365+
<Expanded>
366+
104.0 != Approx( 100.0 )
367+
</Expanded>
368+
</Expression>
369+
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" >
370+
<Original>
371+
100.3 != Approx(100.0)
372+
</Original>
373+
<Expanded>
374+
100.3 != Approx( 100.0 )
375+
</Expanded>
376+
</Expression>
377+
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" >
378+
<Original>
379+
100.3 == Approx(100.0).margin(0.5)
380+
</Original>
381+
<Expanded>
382+
100.3 == Approx( 100.0 )
383+
</Expanded>
384+
</Expression>
385+
<OverallResult success="true"/>
386+
</TestCase>
344387
<TestCase name="AllOf matcher" tags="[matchers]" filename="projects/<exe-name>/MatchersTests.cpp" >
345388
<Expression success="true" type="CHECK_THAT" filename="projects/<exe-name>/MatchersTests.cpp" >
346389
<Original>
@@ -9842,7 +9885,7 @@ spanner <OverallResult success="true"/>
98429885
</Section>
98439886
<OverallResult success="true"/>
98449887
</TestCase>
9845-
<OverallResults successes="844" failures="89" expectedFailures="18"/>
9888+
<OverallResults successes="849" failures="89" expectedFailures="18"/>
98469889
</Group>
9847-
<OverallResults successes="844" failures="88" expectedFailures="18"/>
9890+
<OverallResults successes="849" failures="88" expectedFailures="18"/>
98489891
</Catch>

0 commit comments

Comments
 (0)