Skip to content
Permalink
Browse files

Fix test on Qt5.6

  • Loading branch information
nyalldawson committed Jun 26, 2017
1 parent 86d33c1 commit 7a6a6ff9f83846b16a27275da16b5c5d3ad38ad9
Showing with 1 addition and 1 deletion.
  1. +1 −1 tests/src/core/testqgsprocessing.cpp
@@ -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() );

0 comments on commit 7a6a6ff

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