Skip to content

Commit b12dd44

Browse files
committed
get rid of epsilon
1 parent 91a9e59 commit b12dd44

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

xmsinterp/interpolate/InterpLinear.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,6 @@ std::string InterpLinearImpl::ToString() const
608608

609609
#ifdef CXX_TEST
610610
////////////////////////////////////////////////////////////////////////////////
611-
#include <float.h>
612611
#include <xmsinterp/interpolate/InterpLinear.t.h>
613612
#include <xmsgrid/triangulate/TrTriangulatorPoints.h>
614613

xmsinterp/interpolate/InterpLinearExtrapIdw.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ void InterpLinearExtrapIdwUnitTests::testOutsideInterpolatePoint()
398398
Pt3d pt(0, 25, 0);
399399

400400
float val = interpolator->InterpToPt(pt);
401-
TS_ASSERT_DELTA(2.70349288, val, FLT_EPSILON);
401+
TS_ASSERT_DELTA(2.70349288, val, 1e-7);
402402
} // InterpLinearExtrapIdwUnitTests::testOutsideInterpolatePoint
403403
//------------------------------------------------------------------------------
404404
/// \brief tests doing interpolation to point inside the triangles
@@ -416,7 +416,7 @@ void InterpLinearExtrapIdwUnitTests::testInsideInterpolatePoint()
416416
Pt3d pt(5, 5, 0);
417417

418418
float val = interpolator->InterpToPt(pt);
419-
TS_ASSERT_DELTA(2.0, val, FLT_EPSILON);
419+
TS_ASSERT_DELTA(2.0, val, 1e-7);
420420
} // InterpLinearExtrapIdwUnitTests::testInsideInterpolatePoint
421421
//------------------------------------------------------------------------------
422422
/// \brief tests doing interpolation to point inside the triangles
@@ -434,7 +434,7 @@ void InterpLinearExtrapIdwUnitTests::testOneEdgeInterpolatePoint()
434434
Pt3d pt(10, 10, 0);
435435

436436
float val = interpolator->InterpToPt(pt);
437-
TS_ASSERT_DELTA(2.0, val, FLT_EPSILON);
437+
TS_ASSERT_DELTA(2.0, val, 1e-7);
438438
} // InterpLinearExtrapIdwUnitTests::testOneEdgeInterpolatePoint
439439
//} // namespace xms
440440
#endif // CXX_TEST

0 commit comments

Comments
 (0)