Skip to content
Permalink
Browse files

Another test

  • Loading branch information
nyalldawson committed Apr 8, 2019
1 parent 927b053 commit 75993afcee624e8d1bb71a6555c5d9c538fd9f36
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/src/core/testqgscoordinatereferencesystem.cpp
@@ -721,6 +721,8 @@ void TestQgsCoordinateReferenceSystem::mapUnits()
debugPrint( myCrs );
myCrs.createFromString( QStringLiteral( "EPSG:26812" ) );
QCOMPARE( myCrs.mapUnits(), QgsUnitTypes::DistanceFeet );
myCrs.createFromString( QStringLiteral( "EPSG:4619" ) );
QCOMPARE( myCrs.mapUnits(), QgsUnitTypes::DistanceDegrees );

// an invalid crs should return unknown unit
QCOMPARE( QgsCoordinateReferenceSystem().mapUnits(), QgsUnitTypes::DistanceUnknownUnit );

0 comments on commit 75993af

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