mirror of
https://github.com/catchorg/Catch2.git
synced 2025-05-28 07:29:25 +00:00
Made Approx a little more forgiving (to 100& epsilon of float) and added some more tests for it
This commit is contained in:
parent
f5668fafd9
commit
cae44d8ace
2 changed files with 41 additions and 2 deletions
|
@ -29,7 +29,7 @@ namespace Catch
|
|||
(
|
||||
double d
|
||||
)
|
||||
: m_epsilon( std::numeric_limits<double>::epsilon() ),
|
||||
: m_epsilon( std::numeric_limits<float>::epsilon()*100 ),
|
||||
m_scale( 1.0 ),
|
||||
m_d( d )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue