Skip to content

Commit

Permalink
Fixes so qgspoint unit tests all pass
Browse files Browse the repository at this point in the history
  • Loading branch information
timlinux committed Nov 16, 2011
1 parent 260cc74 commit 4906f77
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/src/core/testqgspoint.cpp
Expand Up @@ -112,7 +112,15 @@ void TestQgsPoint::toDegreesMinutesSeconds()
mReport += "<p>" + mPoint2.toDegreesMinutesSeconds( 2 ) + "</p>";
mReport += "<p>" + mPoint3.toDegreesMinutesSeconds( 2 ) + "</p>";
mReport += "<p>" + mPoint4.toDegreesMinutesSeconds( 2 ) + "</p>";
QVERIFY( mPoint4.toDegreesMinutesSeconds( 2 ) == QString( "80°0'0.00\"E,20°0'0.00\"N" ) );
qDebug() << mPoint4.toDegreesMinutesSeconds( 2 );
QString myControlString = QString( "80" ) + QChar( 176 ) +
QString( "0'0.00" ) +
QString( '"' ) +
QString( "E,20" ) + QChar( 176 ) +
QString( "0'0.00" ) + QString( '"' ) +
QString( "N" );
qDebug() << myControlString;
QVERIFY( mPoint4.toDegreesMinutesSeconds( 2 ) == myControlString );

};
void TestQgsPoint::wellKnownText()
Expand Down

0 comments on commit 4906f77

Please sign in to comment.