Skip to content

Commit

Permalink
Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson authored and PeterPetrik committed Dec 3, 2020
1 parent 2d32594 commit f64f687
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/src/providers/testqgseptprovider.cpp
Expand Up @@ -169,7 +169,9 @@ void TestQgsEptProvider::validLayer()
QGSCOMPARENEAR( layer->extent().yMinimum(), 7050992.0, 0.1 );
QGSCOMPARENEAR( layer->extent().xMaximum(), 498068.0, 0.1 );
QGSCOMPARENEAR( layer->extent().yMaximum(), 7050998.0, 0.1 );
QCOMPARE( layer->dataProvider()->polygonBounds().asWkt( 0 ), QStringLiteral( "Polygon ((498061 7050992, 498068 7050992, 498068 7050998, 498061 7050998, 498061 7050992))" ) );
QCOMPARE( layer->dataProvider()->pointCount(), 253 );
QCOMPARE( layer->pointCount(), 253 );

QVERIFY( layer->dataProvider()->index() );
// all hierarchy is stored in a single node
Expand Down
2 changes: 2 additions & 0 deletions tests/src/providers/testqgspdalprovider.cpp
Expand Up @@ -170,8 +170,10 @@ void TestQgsPdalProvider::validLayer()
QGSCOMPARENEAR( layer->extent().yMinimum(), 7050992.84, 0.1 );
QGSCOMPARENEAR( layer->extent().xMaximum(), 498067.39, 0.1 );
QGSCOMPARENEAR( layer->extent().yMaximum(), 7050997.04, 0.1 );
QCOMPARE( layer->dataProvider()->polygonBounds().asWkt( 0 ), QStringLiteral( "Polygon ((498062 7050993, 498067 7050993, 498067 7050997, 498062 7050997, 498062 7050993))" ) );

QCOMPARE( layer->dataProvider()->pointCount(), 253 );
QCOMPARE( layer->pointCount(), 253 );
}

QGSTEST_MAIN( TestQgsPdalProvider )
Expand Down

0 comments on commit f64f687

Please sign in to comment.