Skip to content
Permalink
Browse files
improve test
  • Loading branch information
vcloarec authored and wonder-sk committed Aug 24, 2021
1 parent 196fa15 commit ce0ac5d22455bd9855020281233f8b528a0ba9e0
Showing with 9 additions and 1 deletion.
  1. +9 −1 tests/src/core/testqgsmesheditor.cpp
@@ -22,6 +22,7 @@
#include "qgsmeshlayer.h"
#include "qgsmesheditor.h"
#include "qgsmeshadvancedediting.h"
#include "qgstransformeffect.h"


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

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

@@ -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();
}
}

0 comments on commit ce0ac5d

Please sign in to comment.