Skip to content
Permalink
Browse files

Add test for NULL bounding box of empty line

  • Loading branch information
m-kuhn committed Jun 4, 2015
1 parent 033baf1 commit 10c7d6aa066d538ee62f4b20942cf44204bdcc89
Showing with 5 additions and 0 deletions.
  1. +5 −0 tests/src/python/test_qgsgeometry.py
@@ -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
# | | | |

0 comments on commit 10c7d6a

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