From fd1e3076f82b34a07dac7c3c7fbf00cd3eecf246 Mon Sep 17 00:00:00 2001 From: hyOzd Date: Mon, 3 Aug 2015 23:06:21 +0300 Subject: [PATCH] add test for 'clean' cutThruAll() --- tests/TestCadQuery.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/TestCadQuery.py b/tests/TestCadQuery.py index 6de3a63..5ca264e 100644 --- a/tests/TestCadQuery.py +++ b/tests/TestCadQuery.py @@ -1088,6 +1088,13 @@ class TestCadQuery(BaseTest): self.assertEqual(7, s.faces().size()) + # test removal of splitter caused by cutThruAll + s = Workplane("XY").box(10,10,10).faces(">Y").workplane().\ + rect(10,5).cutBlind(-5).faces(">Z").workplane().\ + center(0,2.5).rect(5,5).cutThruAll() + + self.assertEqual(18, s.faces().size()) + def testNoClean(self): """ Test the case when clean is disabled.