From 369851afc6e862f2002b236dae8cfa3fd569a049 Mon Sep 17 00:00:00 2001 From: Alessandro Pasotti Date: Sun, 30 Jul 2023 10:29:19 +0200 Subject: [PATCH] Fix test --- tests/src/gui/testqgsadvanceddigitizingdockwidget.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/src/gui/testqgsadvanceddigitizingdockwidget.cpp b/tests/src/gui/testqgsadvanceddigitizingdockwidget.cpp index ae30b22bf316..9a48761ecc41 100644 --- a/tests/src/gui/testqgsadvanceddigitizingdockwidget.cpp +++ b/tests/src/gui/testqgsadvanceddigitizingdockwidget.cpp @@ -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 ); }