#include <QFile>
#include <QTextStream>
+const double EPS = 1E-2;
+
bool test_HYDROData_Profile::createTestFile( const QString& theFileName,
const bool theIsParametric )
{
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();
}