Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso authored and nyalldawson committed Jul 31, 2023
1 parent 4939fff commit 369851a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/gui/testqgsadvanceddigitizingdockwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -119,15 +119,15 @@ void TestQgsAdvancedDigitizingDockWidget::parseUserInput()
QgsProject::instance()->setDistanceUnits( Qgis::DistanceUnit::NauticalMiles );

result = widget.parseUserInput( QStringLiteral( "120.123" ), Qgis::CadConstraintType::Distance, ok );
QCOMPARE( result, 222467.796 );
QCOMPARE( result, 120.123 );
QVERIFY( ok );

result = widget.parseUserInput( QStringLiteral( "120.123 NM" ), Qgis::CadConstraintType::Distance, ok );
QCOMPARE( result, 222467.796 );
QCOMPARE( result, 120.123 );
QVERIFY( ok );

result = widget.parseUserInput( QStringLiteral( "120.123NM" ), Qgis::CadConstraintType::Distance, ok );
QCOMPARE( result, 222467.796 );
QCOMPARE( result, 120.123 );
QVERIFY( ok );

}
Expand Down

0 comments on commit 369851a

Please sign in to comment.