X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FHYDRO_tests%2Ftest_HYDROData_Profile.cxx;h=cc3d3da00660a056f8124fbba4350e34903a937b;hb=143e6a0c49d1e9eab9efb1cacba588a81fb07049;hp=49872918376602d09366ab05fa63f86edf4c9681;hpb=557f5f91d30a5fae83a018a79eeb445c8c51ec3d;p=modules%2Fhydro.git diff --git a/src/HYDRO_tests/test_HYDROData_Profile.cxx b/src/HYDRO_tests/test_HYDROData_Profile.cxx index 49872918..cc3d3da0 100644 --- a/src/HYDRO_tests/test_HYDROData_Profile.cxx +++ b/src/HYDRO_tests/test_HYDROData_Profile.cxx @@ -32,6 +32,8 @@ #include #include +const double EPS = 1E-2; + bool test_HYDROData_Profile::createTestFile( const QString& theFileName, const bool theIsParametric ) { @@ -122,9 +124,9 @@ void test_HYDROData_Profile::testFileImport() CPPUNIT_ASSERT( aProfilePoints.Length() == 5 ); HYDROData_Profile::ProfilePoint aProfilePoint = aProfilePoints.Value( 3 ); - CPPUNIT_ASSERT( ValuesEquals( aProfilePoint.X(), 1040509.21 ) ); - CPPUNIT_ASSERT( ValuesEquals( aProfilePoint.Y(), 6788619.81 ) ); - CPPUNIT_ASSERT( ValuesEquals( aProfilePoint.Z(), 181.63 ) ); + CPPUNIT_ASSERT_DOUBLES_EQUAL( aProfilePoint.X(), 1040509.21, EPS ); + CPPUNIT_ASSERT_DOUBLES_EQUAL( aProfilePoint.Y(), 6788619.81, EPS ); + CPPUNIT_ASSERT_DOUBLES_EQUAL( aProfilePoint.Z(), 181.63, EPS ); aDoc->Close(); }