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

Function test_map

tests/test_sketch.py:885–888  ·  view source on GitHub ↗
(s1, f)

Source from the content-addressed store, hash-verified

883
884
885def test_map(s1, f):
886 assert s1.map(
887 lambda x: f.moved(x.Center())
888 ).replace().reset().val().Area() == approx(0.2)
889
890
891def test_getitem(s2):

Callers

nothing calls this directly

Calls 7

resetMethod · 0.80
AreaMethod · 0.45
valMethod · 0.45
replaceMethod · 0.45
mapMethod · 0.45
movedMethod · 0.45
CenterMethod · 0.45

Tested by

no test coverage detected