Skip to content

Commit

Permalink
[fix] absolute bounding box wasn't behaving as expected
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker committed Jan 14, 2016
1 parent 09dd755 commit b7daf3b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,10 @@ def test_bounding_box_with_proxy_list():
assert ((1, 1), (32, 0)) == RED.class_.absolute_bounding_box
assert ((2, 5), (5, 7)) == RED.class_.value[0].absolute_bounding_box
assert ((6, 5), (9, 17)) == RED.class_.value[1].absolute_bounding_box
assert ((9, 18), (10, 0)) == RED.class_.value[2].absolute_bounding_box
assert ((10, 1), (11, 4)) == RED.class_.value[2].absolute_bounding_box
assert ((11, 5), (18, 4)) == RED.class_.value[3].absolute_bounding_box
assert ((18, 5), (18, 16)) == RED.class_.value[4].absolute_bounding_box
assert ((18, 17), (19, 0)) == RED.class_.value[5].absolute_bounding_box
assert ((19, 1), (20, 4)) == RED.class_.value[5].absolute_bounding_box
assert ((20, 5), (28, 4)) == RED.class_.value[6].absolute_bounding_box
assert ((28, 5), (31, 17)) == RED.class_.value[7].absolute_bounding_box
with pytest.raises(IndexError):
Expand All @@ -135,10 +135,10 @@ def test_bounding_box_of_attribute_with_proxy_list():
assert ((1, 1), (32, 0)) == RED.class_.absolute_bounding_box
assert ((2, 5), (5, 7)) == RED.class_.value.get_absolute_bounding_box_of_attribute(0)
assert ((6, 5), (9, 17)) == RED.class_.value.get_absolute_bounding_box_of_attribute(1)
assert ((9, 18), (10, 0)) == RED.class_.value.get_absolute_bounding_box_of_attribute(2)
assert ((10, 1), (11, 4)) == RED.class_.value.get_absolute_bounding_box_of_attribute(2)
assert ((11, 5), (18, 4)) == RED.class_.value.get_absolute_bounding_box_of_attribute(3)
assert ((18, 5), (18, 16)) == RED.class_.value.get_absolute_bounding_box_of_attribute(4)
assert ((18, 17), (19, 0)) == RED.class_.value.get_absolute_bounding_box_of_attribute(5)
assert ((19, 1), (20, 4)) == RED.class_.value.get_absolute_bounding_box_of_attribute(5)
assert ((20, 5), (28, 4)) == RED.class_.value.get_absolute_bounding_box_of_attribute(6)
assert ((28, 5), (31, 17)) == RED.class_.value.get_absolute_bounding_box_of_attribute(7)
with pytest.raises(IndexError):
Expand Down

0 comments on commit b7daf3b

Please sign in to comment.