Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CadQuery/cadquery
/ test_rect
Function
test_rect
tests/test_free_functions.py:406–412 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
404
405
406
def
test_rect():
407
408
s = rect(2, 1)
409
410
assert s.isValid()
411
assert s.IsClosed()
412
assert s.Length() == approx(6)
413
414
415
def
test_circle():
Callers
nothing calls this directly
Calls
4
rect
Function · 0.85
isValid
Method · 0.80
IsClosed
Method · 0.80
Length
Method · 0.45
Tested by
no test coverage detected