Skip to content

Commit 86329f0

Browse files
committed
Change expected behaviour in test_qgsdistancearea.py to also consider inner rings for perimeter calculation
1 parent 5706203 commit 86329f0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/src/python/test_qgsdistancearea.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ def testMeasurePolygonWithHole(self):
9696
area = da.measure(polygon)
9797
assert area == 8, "Expected:\n%f\nGot:\n%f\n" % (8, area)
9898

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

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

0 commit comments

Comments
 (0)