From f0e36498ef0fba146a25dfdb0c7930c3f64556ce Mon Sep 17 00:00:00 2001 From: "Hart, Kenneth Arthur" Date: Mon, 21 Jan 2019 00:59:30 -0500 Subject: [PATCH] added test for overlap with empty tree --- tests/test_aabbtree.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/test_aabbtree.py b/tests/test_aabbtree.py index 3d33bb3..3b12b71 100644 --- a/tests/test_aabbtree.py +++ b/tests/test_aabbtree.py @@ -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()