MCPcopy
hub / github.com/CadQuery/cadquery / test_val

Function test_val

tests/test_sketch.py:780–792  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

778
779
780def test_val():
781
782 s1 = Sketch().segment((0, 0), (0, 1))
783
784 assert isinstance(s1.val(), Edge)
785
786 s1.vertices()
787
788 assert isinstance(s1.val(), Vertex)
789
790 s2 = Sketch().circle(1)
791
792 assert len(s2.val().Faces()) == 1
793
794
795def test_vals():

Callers

nothing calls this directly

Calls 6

SketchClass · 0.90
segmentMethod · 0.80
valMethod · 0.45
verticesMethod · 0.45
circleMethod · 0.45
FacesMethod · 0.45

Tested by

no test coverage detected