Skip to content
Permalink
Browse files

test quad_flower.2dm also in the mesh read tests

  • Loading branch information
PeterPetrik committed Jan 16, 2019
1 parent 0459a3d commit 0a7c8a7011bd175326656e8eaee419c9048546d5
Showing with 12 additions and 0 deletions.
  1. +12 −0 tests/src/core/testqgsmeshlayer.cpp
@@ -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();
@@ -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;

0 comments on commit 0a7c8a7

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