Skip to content

Commit

Permalink
Add test for NULL bounding box of empty line
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 4, 2015
1 parent 033baf1 commit 10c7d6a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/src/python/test_qgsgeometry.py
Expand Up @@ -1103,6 +1103,11 @@ def testBoundingBox(self):
bb = polygon.boundingBox()
assert expbb == bb, "Expected:\n%s\nGot:\n%s\n" % (expbb.toString(), bb.toString())

# NULL
points = []
line = QgsGeometry.fromPolyline(points)
assert line.boundingBox().isNull()

def testAddPart(self):
# 2-3 6-+-7
# | | | |
Expand Down

0 comments on commit 10c7d6a

Please sign in to comment.