- for( int i = 0 ; i < 10 ; i++ ){
- double anX = aRes[i].x();
- double anY = aRes[i].y();
- double aRefX = ((double)i)*0.1;
- double aRefY = ((double)(i-5))*10.;
- CPPUNIT_ASSERT( anX == aRefX );
- CPPUNIT_ASSERT( anY == aRefY );
-
- }
+// printf("Sect1.Name=%s RestName=%s\n", aSect1.mySectionName, aRestoredSect[0].mySectionName );
+ CPPUNIT_ASSERT( aRestoredSect[0].myType == PolylineSection::SECTION_POLYLINE );
+ CPPUNIT_ASSERT( aRestoredSect[0].myIsClosed == false );
+ CPPUNIT_ASSERT( aRestoredSect[0].mySectionName.IsLess( aSect1.mySectionName ) == false );
+ CPPUNIT_ASSERT( aRestoredSect[0].mySectionName.IsGreater( aSect1.mySectionName ) == false );
+ CPPUNIT_ASSERT( aRestoredSect[0].myCoords.size() == 0 );
+
+ CPPUNIT_ASSERT( aRestoredSect[1].myType == PolylineSection::SECTION_SPLINE );
+ CPPUNIT_ASSERT( aRestoredSect[1].myIsClosed == true );
+ CPPUNIT_ASSERT( aRestoredSect[1].mySectionName.IsLess( aSect2.mySectionName ) == false );
+ CPPUNIT_ASSERT( aRestoredSect[1].mySectionName.IsGreater( aSect2.mySectionName ) == false );
+ CPPUNIT_ASSERT( aRestoredSect[1].myCoords.size() == 0 );
+