Skip to content

Commit

Permalink
(still fiddling with tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivierdalang committed Dec 16, 2019
1 parent 111a9eb commit e14d77c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/src/core/testqgsexpression.cpp
Expand Up @@ -2182,7 +2182,7 @@ class TestQgsExpression: public QObject
// Two calls with the same seed always return the same number
QgsExpression exp8( QStringLiteral( "rand(1,1000000000,1)" ) );
QVariant v8 = exp8.evaluate();
QCOMPARE( v8.toInt() == 546311529, true );
QCOMPARE( v8.toInt(), 546311529 );

// Two calls with a different seed return a different number
QgsExpression exp9( QStringLiteral( "rand(1,100000000000,1)" ) );
Expand Down Expand Up @@ -2229,7 +2229,7 @@ class TestQgsExpression: public QObject
// Two calls with the same seed always return the same number
QgsExpression exp8( QStringLiteral( "randf(seed:=1)" ) );
QVariant v8 = exp8.evaluate();
QCOMPARE( v8.toDouble() == 0.13387664401253274, true );
QVERIFY( qgsDoubleNear( v8.toDouble(), 0.13387664401253274 ) );

// Two calls with a different seed return a different number
QgsExpression exp9( QStringLiteral( "randf(seed:=1)" ) );
Expand Down

0 comments on commit e14d77c

Please sign in to comment.