Skip to content

Commit

Permalink
Fix Travis build
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 3, 2019
1 parent a98d12e commit 942827b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/src/core/testqgslabelingengine.cpp
Expand Up @@ -1437,7 +1437,7 @@ void TestQgsLabelingEngine::labelingResults()
QGSCOMPARENEAR( labels.at( 0 ).labelRect.xMaximum(), -611861, 500 );
QGSCOMPARENEAR( labels.at( 0 ).labelRect.yMinimum(), 6897647, 500 );
QGSCOMPARENEAR( labels.at( 0 ).labelRect.yMaximum(), 7192767, 500 );
QCOMPARE( labels.at( 0 ).rotation, 0 );
QCOMPARE( labels.at( 0 ).rotation, 0.0 );

labels = results->labelsAtPosition( QgsPointXY( -769822, 6927647 ) );
QCOMPARE( labels.count(), 1 );
Expand All @@ -1456,7 +1456,7 @@ void TestQgsLabelingEngine::labelingResults()
QGSCOMPARENEAR( labels.at( 0 ).labelRect.xMaximum(), -2107542, 500 );
QGSCOMPARENEAR( labels.at( 0 ).labelRect.yMinimum(), 9240403, 500 );
QGSCOMPARENEAR( labels.at( 0 ).labelRect.yMaximum(), 9535523, 500 );
QCOMPARE( labels.at( 0 ).rotation, 0 );
QCOMPARE( labels.at( 0 ).rotation, 0.0 );
labels = results->labelsAtPosition( QgsPointXY( -1383, 6708478 ) );
QCOMPARE( labels.count(), 1 );
QCOMPARE( labels.at( 0 ).featureId, 3 );
Expand All @@ -1467,7 +1467,7 @@ void TestQgsLabelingEngine::labelingResults()
QGSCOMPARENEAR( labels.at( 0 ).labelRect.xMaximum(), 406692, 500 );
QGSCOMPARENEAR( labels.at( 0 ).labelRect.yMinimum(), 6563006, 500 );
QGSCOMPARENEAR( labels.at( 0 ).labelRect.yMaximum(), 6858125, 500 );
QCOMPARE( labels.at( 0 ).rotation, 0 );
QCOMPARE( labels.at( 0 ).rotation, 0.0 );
labels = results->labelsAtPosition( QgsPointXY( -2463392, 6708478 ) );
QCOMPARE( labels.count(), 0 );

Expand All @@ -1488,7 +1488,7 @@ void TestQgsLabelingEngine::labelingResults()
QGSCOMPARENEAR( labels.at( 0 ).labelRect.xMaximum(), -526060, 500 );
QGSCOMPARENEAR( labels.at( 0 ).labelRect.yMinimum(), 6898697, 500 );
QGSCOMPARENEAR( labels.at( 0 ).labelRect.yMaximum(), 7191716, 500 );
QCOMPARE( labels.at( 0 ).rotation, 60 );
QCOMPARE( labels.at( 0 ).rotation, 60.0 );

// should fall outside of rotated bounding box!
labels = results->labelsAtPosition( QgsPointXY( -769822, 6927647 ) );
Expand All @@ -1510,7 +1510,7 @@ void TestQgsLabelingEngine::labelingResults()
QGSCOMPARENEAR( labels.at( 0 ).labelRect.xMaximum(), -2147712, 500 );
QGSCOMPARENEAR( labels.at( 0 ).labelRect.yMinimum(), 9023266, 500 );
QGSCOMPARENEAR( labels.at( 0 ).labelRect.yMaximum(), 9752660, 500 );
QCOMPARE( labels.at( 0 ).rotation, 60 );
QCOMPARE( labels.at( 0 ).rotation, 60.0 );
labels = results->labelsAtPosition( QgsPointXY( -1383, 6708478 ) );
QCOMPARE( labels.count(), 1 );
QCOMPARE( labels.at( 0 ).featureId, 3 );
Expand All @@ -1521,7 +1521,7 @@ void TestQgsLabelingEngine::labelingResults()
QGSCOMPARENEAR( labels.at( 0 ).labelRect.xMaximum(), 324531, 500 );
QGSCOMPARENEAR( labels.at( 0 ).labelRect.yMinimum(), 6273139, 500 );
QGSCOMPARENEAR( labels.at( 0 ).labelRect.yMaximum(), 7147992, 500 );
QCOMPARE( labels.at( 0 ).rotation, 60 );
QCOMPARE( labels.at( 0 ).rotation, 60.0 );
labels = results->labelsAtPosition( QgsPointXY( -2463392, 6708478 ) );
QCOMPARE( labels.count(), 0 );
}
Expand Down

0 comments on commit 942827b

Please sign in to comment.