MCPcopy Create free account
hub / github.com/davisking/dlib / test_point_assignment

Function test_point_assignment

tools/python/test/test_point.py:19–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

17 assert deser.y == p.y
18
19def test_point_assignment():
20 p = point(27, 42)
21 p.x = 16
22 assert p.x == 16
23 assert p.y == 42
24 p.y = 31
25 assert p.x == 16
26 assert p.y == 31
27
28def test_point_init_kwargs():
29 p = point(y=27, x=42)

Callers

nothing calls this directly

Calls 1

pointClass · 0.90

Tested by

no test coverage detected