Skip to content

Commit

Permalink
Fix test on Qt5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 26, 2017
1 parent 86d33c1 commit 7a6a6ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/src/core/testqgsprocessing.cpp
Expand Up @@ -2377,7 +2377,7 @@ void TestQgsProcessing::parameterNumber()
QCOMPARE( iNumber, 5 );

code = def->asScriptCode();
QCOMPARE( code, QStringLiteral( "##optional=optional number 5.4" ) );
QCOMPARE( code.left( 30 ), QStringLiteral( "##optional=optional number 5.4" ) ); // truncate code to 30, to avoid Qt 5.6 rounding issues
fromCode.reset( dynamic_cast< QgsProcessingParameterNumber * >( QgsProcessingParameters::parameterFromScriptCode( code ) ) );
QVERIFY( fromCode.get() );
QCOMPARE( fromCode->name(), def->name() );
Expand Down

0 comments on commit 7a6a6ff

Please sign in to comment.