Skip to content

Commit 4d7f0c2

Browse files
committed
More unit tests
1 parent af22863 commit 4d7f0c2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/src/core/testqgscoordinatetransform.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,10 @@ void TestQgsCoordinateTransform::transform_data()
273273
<< QgsCoordinateReferenceSystem::fromEpsgId( 4326 )
274274
<< QgsCoordinateReferenceSystem::fromEpsgId( 3111 )
275275
<< 145.512750 << -37.961375 << static_cast< int >( QgsCoordinateTransform::ForwardTransform ) << 2545059.0 << 2393190.0 << 0.1;
276+
QTest::newRow( "From geographic to geographic" )
277+
<< QgsCoordinateReferenceSystem::fromEpsgId( 4326 )
278+
<< QgsCoordinateReferenceSystem::fromEpsgId( 4164 )
279+
<< 145.512750 << -37.961375 << static_cast< int >( QgsCoordinateTransform::ForwardTransform ) << 145.510966 << -37.961741 << 0.0001;
276280
QTest::newRow( "To geographic (reverse)" )
277281
<< QgsCoordinateReferenceSystem::fromEpsgId( 3111 )
278282
<< QgsCoordinateReferenceSystem::fromEpsgId( 4326 )
@@ -281,6 +285,11 @@ void TestQgsCoordinateTransform::transform_data()
281285
<< QgsCoordinateReferenceSystem::fromEpsgId( 4326 )
282286
<< QgsCoordinateReferenceSystem::fromEpsgId( 3111 )
283287
<< 2545058.9675128171 << 2393190.0509782173 << static_cast< int >( QgsCoordinateTransform::ReverseTransform ) << 145.512750 << -37.961375 << 0.000001;
288+
QTest::newRow( "From geographic to geographic reverse" )
289+
<< QgsCoordinateReferenceSystem::fromEpsgId( 4326 )
290+
<< QgsCoordinateReferenceSystem::fromEpsgId( 4164 )
291+
<< 145.510966 << -37.961741 << static_cast< int >( QgsCoordinateTransform::ReverseTransform ) << 145.512750 << -37.961375 << 0.0001;
292+
284293
}
285294

286295
void TestQgsCoordinateTransform::transform()

0 commit comments

Comments
 (0)