Navigation Menu

Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and wonder-sk committed Aug 24, 2021
1 parent 196fa15 commit ce0ac5d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/src/core/testqgsmesheditor.cpp
Expand Up @@ -22,6 +22,7 @@
#include "qgsmeshlayer.h"
#include "qgsmesheditor.h"
#include "qgsmeshadvancedediting.h"
#include "qgstransformeffect.h"


class TestQgsMeshEditor : public QObject
Expand Down Expand Up @@ -984,7 +985,7 @@ void TestQgsMeshEditor::particularCases()
}
}

const QgsCoordinateTransform transform;
QgsCoordinateTransform transform;
triangularMesh.update( &mesh, transform );
QVERIFY( meshEditor.initialize() == QgsMeshEditingError() );

Expand All @@ -1009,8 +1010,15 @@ void TestQgsMeshEditor::particularCases()

QVERIFY( meshEditor.removeVertices( verticesToRemove, false ) == QgsMeshEditingError() );
QVERIFY( meshEditor.checkConsistency() );

// just create a valid different transform to update the vertices of the triangular mesh
transform = QgsCoordinateTransform( QgsCoordinateReferenceSystem( "EPSG:32620" ),
QgsCoordinateReferenceSystem( "EPSG:32620" ),
QgsCoordinateTransformContext() );
triangularMesh.update( &mesh, transform );
meshEditor.mUndoStack->undo();
QVERIFY( meshEditor.checkConsistency() );
meshEditor.mUndoStack->redo();
}
}

Expand Down

0 comments on commit ce0ac5d

Please sign in to comment.