Skip to content

Commit 30d1436

Browse files
Pierre PenninckxPsycojoker
authored andcommitted
[fix] shows class node too greedy with last newline
1 parent 08350ad commit 30d1436

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

tests/test_bounding_box.py

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,13 @@ def test_bounding_box_with_proxy_list():
121121
assert ((2, 5), (5, 7)) == RED.class_.value[0].absolute_bounding_box
122122
assert ((6, 5), (9, 17)) == RED.class_.value[1].absolute_bounding_box
123123
assert ((9, 18), (10, 0)) == RED.class_.value[2].absolute_bounding_box
124-
assert ((11, 5), (18, 4)) == RED.class_.value[3].absolute_bounding_box
125-
assert ((18, 5), (18, 16)) == RED.class_.value[4].absolute_bounding_box
126-
assert ((18, 17), (19, 0)) == RED.class_.value[5].absolute_bounding_box
127-
assert ((20, 5), (28, 4)) == RED.class_.value[6].absolute_bounding_box
128-
assert ((28, 5), (31, 17)) == RED.class_.value[7].absolute_bounding_box
124+
assert ((11, 5), (16, 12)) == RED.class_.value[3].absolute_bounding_box
125+
assert ((16, 13), (17, 0)) == RED.class_.value[4].absolute_bounding_box
126+
assert ((18, 5), (18, 16)) == RED.class_.value[5].absolute_bounding_box
127+
assert ((18, 17), (19, 0)) == RED.class_.value[6].absolute_bounding_box
128+
assert ((20, 5), (26, 12)) == RED.class_.value[7].absolute_bounding_box
129+
assert ((26, 13), (27, 0)) == RED.class_.value[8].absolute_bounding_box
130+
assert ((28, 5), (31, 17)) == RED.class_.value[9].absolute_bounding_box
129131
with pytest.raises(IndexError):
130132
RED.class_.value[8]
131133

@@ -136,10 +138,12 @@ def test_bounding_box_of_attribute_with_proxy_list():
136138
assert ((2, 5), (5, 7)) == RED.class_.value.get_absolute_bounding_box_of_attribute(0)
137139
assert ((6, 5), (9, 17)) == RED.class_.value.get_absolute_bounding_box_of_attribute(1)
138140
assert ((9, 18), (10, 0)) == RED.class_.value.get_absolute_bounding_box_of_attribute(2)
139-
assert ((11, 5), (18, 4)) == RED.class_.value.get_absolute_bounding_box_of_attribute(3)
140-
assert ((18, 5), (18, 16)) == RED.class_.value.get_absolute_bounding_box_of_attribute(4)
141-
assert ((18, 17), (19, 0)) == RED.class_.value.get_absolute_bounding_box_of_attribute(5)
142-
assert ((20, 5), (28, 4)) == RED.class_.value.get_absolute_bounding_box_of_attribute(6)
143-
assert ((28, 5), (31, 17)) == RED.class_.value.get_absolute_bounding_box_of_attribute(7)
141+
assert ((11, 5), (16, 12)) == RED.class_.value.get_absolute_bounding_box_of_attribute(3)
142+
assert ((16, 13), (17, 0)) == RED.class_.value.get_absolute_bounding_box_of_attribute(4)
143+
assert ((18, 5), (18, 16)) == RED.class_.value.get_absolute_bounding_box_of_attribute(5)
144+
assert ((18, 17), (19, 0)) == RED.class_.value.get_absolute_bounding_box_of_attribute(6)
145+
assert ((20, 5), (26, 12)) == RED.class_.value.get_absolute_bounding_box_of_attribute(7)
146+
assert ((26, 13), (27, 0)) == RED.class_.value.get_absolute_bounding_box_of_attribute(8)
147+
assert ((28, 5), (31, 17)) == RED.class_.value.get_absolute_bounding_box_of_attribute(9)
144148
with pytest.raises(IndexError):
145149
RED.class_.value.get_absolute_bounding_box_of_attribute(8)

0 commit comments

Comments
 (0)