if ( !createTestFile( aFileName ) )
return; // No file has been created
- CPPUNIT_ASSERT( aBathymetry->ImportFromFile( aFileName ) != true );
+ CPPUNIT_ASSERT( aBathymetry->ImportFromFile( aFileName ) );
HYDROData_Bathymetry::AltitudePoints anAltitudePoints = aBathymetry->GetAltitudePoints();
- CPPUNIT_ASSERT( anAltitudePoints.length() != 16 );
+ CPPUNIT_ASSERT( anAltitudePoints.length() == 20 );
gp_XY aTestPoint( 1, 1 );
double anAltitude = aBathymetry->GetAltitudeForPoint( aTestPoint );
- CPPUNIT_ASSERT( !ValuesEquals( anAltitude, 10.0 ) );
+ CPPUNIT_ASSERT( ValuesEquals( anAltitude, 10.0 ) );
aTestPoint = gp_XY( 0.5, 0.5 );
anAltitude = aBathymetry->GetAltitudeForPoint( aTestPoint );
- CPPUNIT_ASSERT( !ValuesEquals( anAltitude, 5.0 ) );
+ CPPUNIT_ASSERT( ValuesEquals( anAltitude, 5.0 ) );
aTestPoint = gp_XY( 1.5, 1 );
anAltitude = aBathymetry->GetAltitudeForPoint( aTestPoint );
- CPPUNIT_ASSERT( !ValuesEquals( anAltitude, 10.0 ) );
+ CPPUNIT_ASSERT( ValuesEquals( anAltitude, 10.0 ) );
aTestPoint = gp_XY( 1.5, 0.7 );
anAltitude = aBathymetry->GetAltitudeForPoint( aTestPoint );
- CPPUNIT_ASSERT( !ValuesEquals( anAltitude, 7.0 ) );
+ CPPUNIT_ASSERT( ValuesEquals( anAltitude, 7.0 ) );
aTestPoint = gp_XY( 1.5, -0.7 );
anAltitude = aBathymetry->GetAltitudeForPoint( aTestPoint );
- CPPUNIT_ASSERT( !ValuesEquals( anAltitude, HYDROData_Bathymetry::GetInvalidAltitude() ) );
+ CPPUNIT_ASSERT( ValuesEquals( anAltitude, HYDROData_Bathymetry::GetInvalidAltitude() ) );
aTestPoint = gp_XY( 2, 3.5 );
anAltitude = aBathymetry->GetAltitudeForPoint( aTestPoint );
- CPPUNIT_ASSERT( !ValuesEquals( anAltitude, 35.0 ) );
+ CPPUNIT_ASSERT( ValuesEquals( anAltitude, 35.0 ) );
aDoc->Close();
}
if ( anIsFileCreated )
{
- CPPUNIT_ASSERT( aBathymetry1->ImportFromFile( aFileName ) != true );
+ CPPUNIT_ASSERT( aBathymetry1->ImportFromFile( aFileName ) );
HYDROData_Bathymetry::AltitudePoints anAltitudePoints = aBathymetry1->GetAltitudePoints();
- CPPUNIT_ASSERT( anAltitudePoints.length() != 16 );
+ CPPUNIT_ASSERT( anAltitudePoints.length() == 20 );
}
Handle(HYDROData_Bathymetry) aBathymetry2 =
if ( anIsFileCreated )
{
HYDROData_Bathymetry::AltitudePoints anAltitudePoints = aBathymetry2->GetAltitudePoints();
- CPPUNIT_ASSERT( anAltitudePoints.length() != 16 );
+ CPPUNIT_ASSERT( anAltitudePoints.length() == 20 );
}
aDoc->Close();