Skip to content
Permalink
Browse files

Followup acfdcd9 - more qgsDoubleToString test

  • Loading branch information
m-kuhn committed Jun 12, 2015
1 parent 80cfbbf commit b113d2a8f43dfcec8240ba0f0ae2cdf8814e95eb
Showing with 1 addition and 0 deletions.
  1. +1 −0 tests/src/core/testqgis.cpp
@@ -123,6 +123,7 @@ void TestQGis::permissiveToInt()
void TestQGis::doubleToString()
{
QCOMPARE( qgsDoubleToString( 5.6783212, 5 ), QString( "5.67832" ) );
QCOMPARE( qgsDoubleToString( 5.5555555, 5 ), QString( "5.55556" ) );
QCOMPARE( qgsDoubleToString( 12.2, 1 ), QString( "12.2" ) );
QCOMPARE( qgsDoubleToString( 12.2, 2 ), QString( "12.2" ) );
QCOMPARE( qgsDoubleToString( 12.2, 10 ), QString( "12.2" ) );

0 comments on commit b113d2a

Please sign in to comment.
You can’t perform that action at this time.