Salome HOME
automatic tests stabilization
[modules/hydro.git] / src / HYDRO_tests / test_HYDROData_Profile.cxx
index 49872918376602d09366ab05fa63f86edf4c9681..cc3d3da00660a056f8124fbba4350e34903a937b 100644 (file)
@@ -32,6 +32,8 @@
 #include <QFile>
 #include <QTextStream>
 
+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();
 }