kuuko pushed a commit to branch master. http://git.enlightenment.org/bindings/python/python-efl.git/commit/?id=ee9c3cb04295dc1cdcde97d3b36e96ebb4885383
commit ee9c3cb04295dc1cdcde97d3b36e96ebb4885383 Author: Kai Huuhko <[email protected]> Date: Mon Mar 2 05:19:04 2015 +0200 tests.evas: Add a valid, failing test for Rect.intercepts The algorithm used produces a false negative when the shapes intersect in a cross shape. --- tests/evas/test_01_rect.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/evas/test_01_rect.py b/tests/evas/test_01_rect.py index 38b7eb1..af65f2c 100644 --- a/tests/evas/test_01_rect.py +++ b/tests/evas/test_01_rect.py @@ -149,6 +149,10 @@ class TestRectIntercepts(unittest.TestCase): r2 = evas.Rect(self.r) self.assert_(self.r.intercepts(r2)) + def testCross(self): + r2 = evas.Rect(2, -2, 6, 14) + self.assert_(self.r.intercepts(r2)) + def testInterceptTopLeft(self): r2 = evas.Rect(-5, -5, 10, 10) self.assert_(self.r.intercepts(r2)) --
