Skip to content
Permalink
Browse files

more tests

  • Loading branch information
nyalldawson committed Sep 18, 2018
1 parent f9015f3 commit db8271901e689f2d33b99ce39f3060f12d8617e1
Showing with 4 additions and 2 deletions.
  1. +4 −2 tests/src/core/testqgis.cpp
@@ -353,8 +353,10 @@ void TestQgis::testQgsRound()
QGSCOMPARENEAR( qgsRound( -9.8765432198765, 7 ), -9.876543, 0.000001 );
QGSCOMPARENEAR( qgsRound( 9876543.2198765, 5 ), 9876543.219880, 0.000001 );
QGSCOMPARENEAR( qgsRound( -9876543.2198765, 5 ), -9876543.219870, 0.000001 );


QGSCOMPARENEAR( qgsRound( 9.87654321987654321, 13 ), 9.87654321987654, 0.0000000000001 );
QGSCOMPARENEAR( qgsRound( 9.87654321987654321, 14 ), 9.876543219876543, 0.00000000000001 );
QGSCOMPARENEAR( qgsRound( 9998.87654321987654321, 14 ), 9998.876543219876543, 0.00000000000001 );
QGSCOMPARENEAR( qgsRound( 9999999.87654321987654321, 14 ), 9999999.876543219876543, 0.00000000000001 );
}


0 comments on commit db82719

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