MCPcopy Index your code
hub / github.com/CadQuery/cadquery / testFirst

Method testFirst

tests/test_selectors.py:68–71  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66 self.assertEqual(4, c.faces().all()[0].vertices().size())
67
68 def testFirst(self):
69 c = CQ(makeUnitCube())
70 self.assertEqual(type(c.vertices().first().val()), Vertex)
71 self.assertEqual(type(c.vertices().first().first().first().val()), Vertex)
72
73 def testCompounds(self):
74 c = CQ(makeUnitSquareWire())

Callers

nothing calls this directly

Calls 4

makeUnitCubeFunction · 0.90
valMethod · 0.45
firstMethod · 0.45
verticesMethod · 0.45

Tested by

no test coverage detected