Skip to content
Permalink
Browse files
Fixes so qgspoint unit tests all pass
  • Loading branch information
timlinux committed Nov 16, 2011
1 parent 260cc74 commit 4906f7749e3802596193a1f57b4c99344f506ca1
Showing with 9 additions and 1 deletion.
  1. +9 −1 tests/src/core/testqgspoint.cpp
@@ -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()

0 comments on commit 4906f77

Please sign in to comment.