Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/CadQuery/cadquery
/ test_sphere
Function
test_sphere
tests/test_free_functions.py:457–462 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
455
456
457
def
test_sphere():
458
459
s = sphere(2)
460
461
assert s.isValid()
462
assert s.Volume() == approx(4 / 3 * pi)
463
464
465
def
test_torus():
Callers
nothing calls this directly
Calls
3
sphere
Function · 0.85
isValid
Method · 0.80
Volume
Method · 0.80
Tested by
no test coverage detected