From d5b9b38c7fbe3fe078e121cfbac9617d95c0db40 Mon Sep 17 00:00:00 2001 From: hyOzd Date: Tue, 16 Jun 2015 21:55:28 +0300 Subject: [PATCH] test boxselector again by swapping box points --- tests/TestCQSelectors.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/TestCQSelectors.py b/tests/TestCQSelectors.py index 977f6f2..ab62491 100644 --- a/tests/TestCQSelectors.py +++ b/tests/TestCQSelectors.py @@ -200,6 +200,12 @@ class TestCQSelectors(BaseTest): v = vl[0] self.assertTupleAlmostEquals(d[2], (v.X, v.Y, v.Z), 3) + # this time box points are swapped + vl = c.vertices(selectors.BoxSelector(d[1], d[0])).vals() + self.assertEqual(1, len(vl)) + v = vl[0] + self.assertTupleAlmostEquals(d[2], (v.X, v.Y, v.Z), 3) + def testFaceCount(self): c = CQ(makeUnitCube()) self.assertEqual( 6, c.faces().size() )