Skip to content

Commit

Permalink
added test for overlap with empty tree
Browse files Browse the repository at this point in the history
  • Loading branch information
Hart, Kenneth Arthur committed Jan 21, 2019
1 parent d581707 commit f0e3649
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_aabbtree.py
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ def test_does_overlap():
aabb6 = AABB([(0, 1), (5, 6)])
aabb7 = AABB([(6.5, 6.5), (5.5, 5.5)])

for aabb in (aabb5, aabb6, aabb7):
assert not AAABBTree().does_overlap(aabb)

aabbs = standard_aabbs()
for indices in itertools.permutations(range(4)):
tree = AABBTree()
Expand Down

0 comments on commit f0e3649

Please sign in to comment.