Skip to content

Commit

Permalink
test added
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and nyalldawson committed May 19, 2020
1 parent 24cda40 commit 0f3a6f0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/src/python/test_qgsgeometry.py
Expand Up @@ -1193,6 +1193,9 @@ def testClosestVertex(self):
assert abs(dist - exp) < 0.00001, "Expected: %f; Got:%f" % (exp, dist) assert abs(dist - exp) < 0.00001, "Expected: %f; Got:%f" % (exp, dist)
self.assertEqual(leftOf, -1) self.assertEqual(leftOf, -1)


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

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

0 comments on commit 0f3a6f0

Please sign in to comment.