Skip to content
Permalink
Browse files

Change expected behaviour in test_qgsdistancearea.py to also consider…

… inner rings for perimeter calculation
  • Loading branch information
mhugent committed Jul 29, 2015
1 parent 5706203 commit 86329f017015ade3743777399a22bc42baffe319
Showing with 2 additions and 1 deletion.
  1. +2 −1 tests/src/python/test_qgsdistancearea.py
@@ -96,8 +96,9 @@ def testMeasurePolygonWithHole(self):
area = da.measure(polygon)
assert area == 8, "Expected:\n%f\nGot:\n%f\n" % (8, area)

#MH150729: Changed behaviour to consider inner rings for perimeter calculation. Therefore, expected result is 16.
perimeter = da.measurePerimeter(polygon)
assert perimeter == 12, "Expected:\n%f\nGot:\n%f\n" % (12, perimeter)
assert perimeter == 16, "Expected:\n%f\nGot:\n%f\n" % (16, perimeter)

def testMeasureMultiPolygon(self):
# +-+-+ +-+-+

0 comments on commit 86329f0

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