mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-18 02:45:40 +02:00
Added approvals for “Greater-than inequalities with different epsilons” test
This commit is contained in:
@@ -2366,6 +2366,36 @@ PASSED:
|
||||
with expansion:
|
||||
214 == 214
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Greater-than inequalities with different epsilons
|
||||
-------------------------------------------------------------------------------
|
||||
ApproxTests.cpp:<line number>
|
||||
...............................................................................
|
||||
|
||||
ApproxTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( d >= Approx( 1.22 ) )
|
||||
with expansion:
|
||||
1.23 >= Approx( 1.22 )
|
||||
|
||||
ApproxTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( d >= Approx( 1.23 ) )
|
||||
with expansion:
|
||||
1.23 >= Approx( 1.23 )
|
||||
|
||||
ApproxTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE_FALSE( d >= Approx( 1.24 ) )
|
||||
with expansion:
|
||||
!(1.23 >= Approx( 1.24 ))
|
||||
|
||||
ApproxTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( d >= Approx( 1.24 ).epsilon(0.1) )
|
||||
with expansion:
|
||||
1.23 >= Approx( 1.24 )
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
INFO and WARN do not abort tests
|
||||
-------------------------------------------------------------------------------
|
||||
@@ -2530,6 +2560,36 @@ PASSED:
|
||||
with expansion:
|
||||
5 != 6
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Less-than inequalities with different epsilons
|
||||
-------------------------------------------------------------------------------
|
||||
ApproxTests.cpp:<line number>
|
||||
...............................................................................
|
||||
|
||||
ApproxTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( d <= Approx( 1.24 ) )
|
||||
with expansion:
|
||||
1.23 <= Approx( 1.24 )
|
||||
|
||||
ApproxTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( d <= Approx( 1.23 ) )
|
||||
with expansion:
|
||||
1.23 <= Approx( 1.23 )
|
||||
|
||||
ApproxTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE_FALSE( d <= Approx( 1.22 ) )
|
||||
with expansion:
|
||||
!(1.23 <= Approx( 1.22 ))
|
||||
|
||||
ApproxTests.cpp:<line number>:
|
||||
PASSED:
|
||||
REQUIRE( d <= Approx( 1.22 ).epsilon(0.1) )
|
||||
with expansion:
|
||||
1.23 <= Approx( 1.22 )
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
Long strings can be wrapped
|
||||
plain string
|
||||
@@ -8911,6 +8971,6 @@ MiscTests.cpp:<line number>:
|
||||
PASSED:
|
||||
|
||||
===============================================================================
|
||||
test cases: 157 | 112 passed | 43 failed | 2 failed as expected
|
||||
assertions: 903 | 805 passed | 80 failed | 18 failed as expected
|
||||
test cases: 159 | 114 passed | 43 failed | 2 failed as expected
|
||||
assertions: 911 | 813 passed | 80 failed | 18 failed as expected
|
||||
|
||||
|
Reference in New Issue
Block a user