MCPcopy Create free account
hub / github.com/CadQuery/cadquery / test_segment

Function test_segment

tests/test_free_functions.py:381–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

379
380
381def test_segment():
382
383 s = segment((0, 0, 0), (0, 0, 1))
384
385 assert s.isValid()
386 assert s.Length() == approx(1)
387
388
389def test_polyline():

Callers

nothing calls this directly

Calls 3

segmentFunction · 0.85
isValidMethod · 0.80
LengthMethod · 0.45

Tested by

no test coverage detected