Added number of top faces check in the text test case

This commit is contained in:
adam-urbanczyk
2019-02-22 06:54:03 +01:00
parent e474c0ef6f
commit 4a9bd81b89

View File

@ -1810,7 +1810,11 @@ class TestCadQuery(BaseTest):
#combined object should have smaller volume
self.assertGreater(box.val().Volume(),obj1.val().Volume())
obj2 = box.faces('>Z').workplane().text('CQ 2.0',0.5,.05,cut=False,combine=True)
obj2 = box.faces('>Z').workplane()\
.text('CQ 2.0',0.5,.05,cut=False,combine=True)
#combined object should have bigger volume
self.assertLess(box.val().Volume(),obj2.val().Volume())
#verify that the number of top faces is correct (NB: this is font specific)
self.assertEqual(len(obj2.faces('>Z').vals()),5)