mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Also test Approx template constructor
This commit is contained in:
parent
20211a33e6
commit
28d1955ea8
@ -1141,13 +1141,13 @@ with expansion:
|
|||||||
|
|
||||||
Approx.tests.cpp:<line number>:
|
Approx.tests.cpp:<line number>:
|
||||||
PASSED:
|
PASSED:
|
||||||
REQUIRE( td >= Approx(10.0) )
|
REQUIRE( td >= Approx(td) )
|
||||||
with expansion:
|
with expansion:
|
||||||
StrongDoubleTypedef(10) >= Approx( 10.0 )
|
StrongDoubleTypedef(10) >= Approx( 10.0 )
|
||||||
|
|
||||||
Approx.tests.cpp:<line number>:
|
Approx.tests.cpp:<line number>:
|
||||||
PASSED:
|
PASSED:
|
||||||
REQUIRE( Approx(10.0) >= td )
|
REQUIRE( Approx(td) >= td )
|
||||||
with expansion:
|
with expansion:
|
||||||
Approx( 10.0 ) >= StrongDoubleTypedef(10)
|
Approx( 10.0 ) >= StrongDoubleTypedef(10)
|
||||||
|
|
||||||
|
@ -1273,7 +1273,7 @@
|
|||||||
</Expression>
|
</Expression>
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
|
||||||
<Original>
|
<Original>
|
||||||
td >= Approx(10.0)
|
td >= Approx(td)
|
||||||
</Original>
|
</Original>
|
||||||
<Expanded>
|
<Expanded>
|
||||||
StrongDoubleTypedef(10) >= Approx( 10.0 )
|
StrongDoubleTypedef(10) >= Approx( 10.0 )
|
||||||
@ -1281,7 +1281,7 @@
|
|||||||
</Expression>
|
</Expression>
|
||||||
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
|
<Expression success="true" type="REQUIRE" filename="projects/<exe-name>/UsageTests/Approx.tests.cpp" >
|
||||||
<Original>
|
<Original>
|
||||||
Approx(10.0) >= td
|
Approx(td) >= td
|
||||||
</Original>
|
</Original>
|
||||||
<Expanded>
|
<Expanded>
|
||||||
Approx( 10.0 ) >= StrongDoubleTypedef(10)
|
Approx( 10.0 ) >= StrongDoubleTypedef(10)
|
||||||
|
@ -189,8 +189,8 @@ TEST_CASE( "Comparison with explicitly convertible types", "[Approx]" )
|
|||||||
REQUIRE(Approx(9.0) <= td);
|
REQUIRE(Approx(9.0) <= td);
|
||||||
|
|
||||||
REQUIRE(td >= Approx(9.0));
|
REQUIRE(td >= Approx(9.0));
|
||||||
REQUIRE(td >= Approx(10.0));
|
REQUIRE(td >= Approx(td));
|
||||||
REQUIRE(Approx(10.0) >= td);
|
REQUIRE(Approx(td) >= td);
|
||||||
REQUIRE(Approx(11.0) >= td);
|
REQUIRE(Approx(11.0) >= td);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user