mirror of
https://github.com/catchorg/Catch2.git
synced 2025-09-17 18:35:40 +02:00
Tweaks to allow headers to be glued together.
Added Python script to generate single header. Added new XCode project that runs self test against single header
This commit is contained in:
@@ -17,7 +17,7 @@ TEST_CASE
|
||||
(
|
||||
"./succeeding/Approx/simple",
|
||||
"Some simple comparisons between doubles"
|
||||
)
|
||||
)
|
||||
{
|
||||
double d = 1.23;
|
||||
|
||||
@@ -29,3 +29,17 @@ TEST_CASE
|
||||
REQUIRE( Approx( d ) != 1.22 );
|
||||
REQUIRE( Approx( d ) != 1.24 );
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
TEST_CASE
|
||||
(
|
||||
"./succeeding/Approx/epsilon",
|
||||
"Approximate comparisons with different epsilons"
|
||||
)
|
||||
{
|
||||
double d = 1.23;
|
||||
|
||||
REQUIRE( d != Approx( 1.231 ) );
|
||||
REQUIRE( d == Approx( 1.231 ).epsilon( 0.1 ) );
|
||||
// REQUIRE( d != Approx( 1.232 ).epsilon( 0.1 ) );
|
||||
}
|
||||
|
Reference in New Issue
Block a user