Skip to content

Commit c62d83e

Browse files
committed
update to test
1 parent f1a4770 commit c62d83e

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

tests/data/annotation_types/geometry/test_mask.py

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,17 @@ def test_mask():
2121
expected1 = {
2222
'type':
2323
'MultiPolygon',
24-
'coordinates': [(((0.0, 0.0), (0.0, 11.0), (11.0, 11.0), (11.0, 0.0),
25-
(0.0, 0.0)),)]
24+
'coordinates': [
25+
(((0.0, 0.0), (0.0, 1.0), (0.0, 2.0), (0.0, 3.0), (0.0, 4.0), (0.0,
26+
5.0),
27+
(0.0, 6.0), (0.0, 7.0), (0.0, 8.0), (0.0, 9.0), (0.0, 10.0),
28+
(1.0, 10.0), (2.0, 10.0), (3.0, 10.0), (4.0, 10.0), (5.0, 10.0),
29+
(6.0, 10.0), (7.0, 10.0), (8.0, 10.0), (9.0, 10.0), (10.0, 10.0),
30+
(10.0, 9.0), (10.0, 8.0), (10.0, 7.0), (10.0, 6.0), (10.0, 5.0),
31+
(10.0, 4.0), (10.0, 3.0), (10.0, 2.0), (10.0, 1.0), (10.0, 0.0),
32+
(9.0, 0.0), (8.0, 0.0), (7.0, 0.0), (6.0, 0.0), (5.0, 0.0),
33+
(4.0, 0.0), (3.0, 0.0), (2.0, 0.0), (1.0, 0.0), (0.0, 0.0)),)
34+
]
2635
}
2736
assert mask1.geometry == expected1
2837
assert mask1.shapely.__geo_interface__ == expected1
@@ -31,8 +40,19 @@ def test_mask():
3140
expected2 = {
3241
'type':
3342
'MultiPolygon',
34-
'coordinates': [(((20.0, 20.0), (20.0, 31.0), (31.0, 31.0),
35-
(31.0, 20.0), (20.0, 20.0)),)]
43+
'coordinates': [
44+
(((20.0, 20.0), (20.0, 21.0), (20.0, 22.0), (20.0, 23.0),
45+
(20.0, 24.0), (20.0, 25.0), (20.0, 26.0), (20.0, 27.0),
46+
(20.0, 28.0), (20.0, 29.0), (20.0, 30.0), (21.0, 30.0),
47+
(22.0, 30.0), (23.0, 30.0), (24.0, 30.0), (25.0, 30.0),
48+
(26.0, 30.0), (27.0, 30.0), (28.0, 30.0), (29.0, 30.0),
49+
(30.0, 30.0), (30.0, 29.0), (30.0, 28.0), (30.0, 27.0),
50+
(30.0, 26.0), (30.0, 25.0), (30.0, 24.0), (30.0, 23.0),
51+
(30.0, 22.0), (30.0, 21.0), (30.0, 20.0), (29.0, 20.0),
52+
(28.0, 20.0), (27.0, 20.0), (26.0, 20.0), (25.0, 20.0),
53+
(24.0, 20.0), (23.0, 20.0), (22.0, 20.0), (21.0, 20.0), (20.0,
54+
20.0)),)
55+
]
3656
}
3757
assert mask2.geometry == expected2
3858
assert mask2.shapely.__geo_interface__ == expected2

0 commit comments

Comments
 (0)