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:
1 parent
4b24490e1a
commit
89d1e6c4f1
14 files changed
+6583
-36
No files matched your search
@@ -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