Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 86329f0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/python/test_qgsdistancearea.py
Expand Up @@ -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):
# +-+-+ +-+-+
Expand Down

0 comments on commit 86329f0

Please sign in to comment.