mirror of
https://github.com/catchorg/Catch2.git
synced 2025-11-04 14:09:33 +01:00
Added approvals for “Greater-than inequalities with different epsilons” test
This commit is contained in:
@@ -2343,6 +2343,41 @@
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<TestCase name="Greater-than inequalities with different epsilons">
|
||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" >
|
||||
<Original>
|
||||
d >= Approx( 1.22 )
|
||||
</Original>
|
||||
<Expanded>
|
||||
1.23 >= Approx( 1.22 )
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" >
|
||||
<Original>
|
||||
d >= Approx( 1.23 )
|
||||
</Original>
|
||||
<Expanded>
|
||||
1.23 >= Approx( 1.23 )
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/ApproxTests.cpp" >
|
||||
<Original>
|
||||
!d >= Approx( 1.24 )
|
||||
</Original>
|
||||
<Expanded>
|
||||
!(1.23 >= Approx( 1.24 ))
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" >
|
||||
<Original>
|
||||
d >= Approx( 1.24 ).epsilon(0.1)
|
||||
</Original>
|
||||
<Expanded>
|
||||
1.23 >= Approx( 1.24 )
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<TestCase name="INFO and WARN do not abort tests">
|
||||
<Info>
|
||||
this is a message
|
||||
@@ -2544,6 +2579,41 @@
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<TestCase name="Less-than inequalities with different epsilons">
|
||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" >
|
||||
<Original>
|
||||
d <= Approx( 1.24 )
|
||||
</Original>
|
||||
<Expanded>
|
||||
1.23 <= Approx( 1.24 )
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" >
|
||||
<Original>
|
||||
d <= Approx( 1.23 )
|
||||
</Original>
|
||||
<Expanded>
|
||||
1.23 <= Approx( 1.23 )
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" type="REQUIRE_FALSE" filename="projects/<exe-name>/ApproxTests.cpp" >
|
||||
<Original>
|
||||
!d <= Approx( 1.22 )
|
||||
</Original>
|
||||
<Expanded>
|
||||
!(1.23 <= Approx( 1.22 ))
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/ApproxTests.cpp" >
|
||||
<Original>
|
||||
d <= Approx( 1.22 ).epsilon(0.1)
|
||||
</Original>
|
||||
<Expanded>
|
||||
1.23 <= Approx( 1.22 )
|
||||
</Expanded>
|
||||
</Expression>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<TestCase name="Long strings can be wrapped">
|
||||
<Section name="plain string">
|
||||
<Section name="No wrapping">
|
||||
@@ -9362,7 +9432,7 @@ there"
|
||||
</Section>
|
||||
<OverallResult success="true"/>
|
||||
</TestCase>
|
||||
<OverallResults successes="805" failures="81" expectedFailures="18"/>
|
||||
<OverallResults successes="813" failures="81" expectedFailures="18"/>
|
||||
</Group>
|
||||
<OverallResults successes="805" failures="80" expectedFailures="18"/>
|
||||
<OverallResults successes="813" failures="80" expectedFailures="18"/>
|
||||
</Catch>
|
||||
|
||||
Reference in New Issue
Block a user