Skip to content

Commit

Permalink
Add some more test mask images
Browse files Browse the repository at this point in the history
Also some debugging info for tests failing on certain platforms.
  • Loading branch information
nyalldawson committed Feb 19, 2015
1 parent 74d0846 commit 7f2fac1
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 30 deletions.
7 changes: 7 additions & 0 deletions tests/src/core/testqgscoordinatetransform.cpp
Expand Up @@ -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 ) );
Expand All @@ -69,3 +75,4 @@ void TestQgsCoordinateTransform::transformBoundingBox()

QTEST_MAIN( TestQgsCoordinateTransform )
#include "testqgscoordinatetransform.moc"

3 changes: 2 additions & 1 deletion tests/src/core/testqgsmaptopixel.cpp
Expand Up @@ -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 );
Expand Down
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.

This file was deleted.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.

0 comments on commit 7f2fac1

Please sign in to comment.