MCPcopy
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
397def 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
406def test_rect():

Callers

nothing calls this directly

Calls 4

polygonFunction · 0.85
isValidMethod · 0.80
IsClosedMethod · 0.80
LengthMethod · 0.45

Tested by

no test coverage detected