mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-19 00:07:15 -04:00
Make test more stable
This commit is contained in:
parent
90e5b3f489
commit
6890255e13
@ -397,13 +397,13 @@ void TestQgsCoordinateReferenceSystem::createCompound()
|
|||||||
QVERIFY( error.isEmpty() );
|
QVERIFY( error.isEmpty() );
|
||||||
// horizontal / vertical flipped
|
// horizontal / vertical flipped
|
||||||
QVERIFY( !QgsCoordinateReferenceSystem::createCompoundCrs( QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:5703" ) ), QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:3111" ) ), error ).isValid() );
|
QVERIFY( !QgsCoordinateReferenceSystem::createCompoundCrs( QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:5703" ) ), QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:3111" ) ), error ).isValid() );
|
||||||
QCOMPARE( error, QStringLiteral( "components of the compound CRS do not belong to one of the allowed combinations of http://docs.opengeospatial.org/as/18-005r5/18-005r5.html#34" ) );
|
QCOMPARE( error.left( 79 ), QStringLiteral( "components of the compound CRS do not belong to one of the allowed combinations" ) );
|
||||||
// horizontal valid / not vertical
|
// horizontal valid / not vertical
|
||||||
QVERIFY( !QgsCoordinateReferenceSystem::createCompoundCrs( QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:3111" ) ), QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:3113" ) ), error ).isValid() );
|
QVERIFY( !QgsCoordinateReferenceSystem::createCompoundCrs( QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:3111" ) ), QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:3113" ) ), error ).isValid() );
|
||||||
QCOMPARE( error, QStringLiteral( "components of the compound CRS do not belong to one of the allowed combinations of http://docs.opengeospatial.org/as/18-005r5/18-005r5.html#34" ) );
|
QCOMPARE( error.left( 79 ), QStringLiteral( "components of the compound CRS do not belong to one of the allowed combinations" ) );
|
||||||
// horizontal already a compound
|
// horizontal already a compound
|
||||||
QVERIFY( !QgsCoordinateReferenceSystem::createCompoundCrs( QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:5500" ) ), QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:5703" ) ), error ).isValid() );
|
QVERIFY( !QgsCoordinateReferenceSystem::createCompoundCrs( QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:5500" ) ), QgsCoordinateReferenceSystem( QStringLiteral( "EPSG:5703" ) ), error ).isValid() );
|
||||||
QCOMPARE( error, QStringLiteral( "components of the compound CRS do not belong to one of the allowed combinations of http://docs.opengeospatial.org/as/18-005r5/18-005r5.html#34" ) );
|
QCOMPARE( error.left( 79 ), QStringLiteral( "components of the compound CRS do not belong to one of the allowed combinations" ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
void TestQgsCoordinateReferenceSystem::createFromId()
|
void TestQgsCoordinateReferenceSystem::createFromId()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user