Skip to content
Permalink
Browse files

Add some more test mask images

Also some debugging info for tests failing on certain platforms.
  • Loading branch information
nyalldawson committed Feb 19, 2015
1 parent 74d0846 commit 7f2fac15dc7b14f7fcf7da609cda0e8d42d85e49
@@ -61,6 +61,12 @@ void TestQgsCoordinateTransform::transformBoundingBox()
expectedRect.setYMinimum( -39.7222 );
expectedRect.setXMaximum( -176.549 );
expectedRect.setYMaximum( -36.3951 );

qDebug( "BBox transform x min: %.17f", resultRect.xMinimum() );
qDebug( "BBox transform x max: %.17f", resultRect.xMaximum() );
qDebug( "BBox transform y min: %.17f", resultRect.yMinimum() );
qDebug( "BBox transform y max: %.17f", resultRect.yMaximum() );

QVERIFY( qgsDoubleNear( resultRect.xMinimum(), expectedRect.xMinimum(), 0.001 ) );
QVERIFY( qgsDoubleNear( resultRect.yMinimum(), expectedRect.yMinimum(), 0.001 ) );
QVERIFY( qgsDoubleNear( resultRect.xMaximum(), expectedRect.xMaximum(), 0.001 ) );
@@ -69,3 +75,4 @@ void TestQgsCoordinateTransform::transformBoundingBox()

QTEST_MAIN( TestQgsCoordinateTransform )
#include "testqgscoordinatetransform.moc"

@@ -50,7 +50,8 @@ void TestQgsMapToPixel::legacy()
QCOMPARE( p.x(), -10.2 );
QCOMPARE( p.y(), 11.2 );
d = m2p.transform( p );
QCOMPARE( d, QgsPoint( -1, -1 ) );
QCOMPARE( d.x(), -1.0 );
QCOMPARE( d.y(), -1.0 );

p = m2p.toMapCoordinates( 20, 20 );
QCOMPARE( p.x(), -6.0 );
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 7f2fac1

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