Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CadQuery/cadquery
/ test_polygon
Function
test_polygon
tests/test_free_functions.py:397–403 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
395
396
397
def
test_polygon():
398
399
s = polygon((0, 0), (0, 1), (1, 1), (1, 0))
400
401
assert s.isValid()
402
assert s.IsClosed()
403
assert s.Length() == approx(4)
404
405
406
def
test_rect():
Callers
nothing calls this directly
Calls
4
polygon
Function · 0.85
isValid
Method · 0.80
IsClosed
Method · 0.80
Length
Method · 0.45
Tested by
no test coverage detected