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

Function test_getitem

tests/test_sketch.py:891–895  ·  view source on GitHub ↗
(s2)

Source from the content-addressed store, hash-verified

889
890
891def test_getitem(s2):
892
893 assert len(s2[0].vals()) == 1
894 assert len(s2.reset()[-2:].vals()) == 2
895 assert len(s2.reset()[[0, 1]].vals()) == 2
896
897
898def test_invoke(s1, s2):

Callers

nothing calls this directly

Calls 2

resetMethod · 0.80
valsMethod · 0.45

Tested by

no test coverage detected