Skip to content

Commit 2ddc071

Browse files
committedOct 13, 2015
More qgsRound tests
1 parent a9baeb1 commit 2ddc071

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎tests/src/core/testqgis.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ void TestQGis::qgsround()
147147
QCOMPARE( qgsRound( 2718281828459.045 ), 2718281828459. );
148148
QCOMPARE( qgsRound( -314159265358979.3 ), -314159265358979. );
149149
QCOMPARE( qgsRound( -2718281828459.045 ), -2718281828459. );
150+
QCOMPARE( qgsRound( 1.5 ), 2. );
151+
QCOMPARE( qgsRound( -1.5 ), -2. );
150152
}
151153

152154
QTEST_MAIN( TestQGis )

0 commit comments

Comments
 (0)
Please sign in to comment.