Skip to content
Permalink
Browse files

test added

  • Loading branch information
uclaros authored and nyalldawson committed May 18, 2020
1 parent 24cda40 commit 0f3a6f030c0466255c290e42b93e2168ff35305c
Showing with 3 additions and 0 deletions.
  1. +3 −0 tests/src/python/test_qgsgeometry.py
@@ -1193,6 +1193,9 @@ def testClosestVertex(self):
assert abs(dist - exp) < 0.00001, "Expected: %f; Got:%f" % (exp, dist)
self.assertEqual(leftOf, -1)

(point, atVertex, beforeVertex, afterVertex, dist) = QgsGeometry().closestVertex(QgsPointXY(42, 42))
self.assertTrue(point.isEmpty())

def testAdjacentVertex(self):
# 2-+-+-+-+-3
# | |

0 comments on commit 0f3a6f0

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