Skip to content

Commit

Permalink
test quad_flower.2dm also in the mesh read tests
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik committed Jan 16, 2019
1 parent 0459a3d commit 0a7c8a7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/src/core/testqgsmeshlayer.cpp
Expand Up @@ -52,6 +52,7 @@ class TestQgsMeshLayer : public QObject

void test_write_read_project();
void test_read_mesh();
void test_read_flower_mesh();
void test_read_bed_elevation_dataset();
void test_read_vertex_scalar_dataset();
void test_read_vertex_vector_dataset();
Expand Down Expand Up @@ -116,6 +117,17 @@ void TestQgsMeshLayer::cleanupTestCase()
QgsApplication::exitQgis();
}

void TestQgsMeshLayer::test_read_flower_mesh()
{
QString uri( mDataDir + "/quad_flower.2dm" );
QgsMeshLayer layer( uri, "Quad Flower MDAL", "mdal" );
QCOMPARE( layer.dataProvider()->datasetGroupCount(), 1 ); //bed elevation is already in the 2dm
QVERIFY( layer.dataProvider() != nullptr );
QVERIFY( layer.dataProvider()->isValid() );
QCOMPARE( 8, layer.dataProvider()->vertexCount() );
QCOMPARE( 5, layer.dataProvider()->faceCount() );
}

void TestQgsMeshLayer::test_read_mesh()
{
QList<const QgsMeshDataProvider *> dataProviders;
Expand Down

0 comments on commit 0a7c8a7

Please sign in to comment.