Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
381
def
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
389
def
test_polyline():
Callers
nothing calls this directly
Calls
3
segment
Function · 0.85
isValid
Method · 0.80
Length
Method · 0.45
Tested by
no test coverage detected