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

Function test_point_init_kwargs

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

Source from the content-addressed store, hash-verified

26 assert p.y == 31
27
28def test_point_init_kwargs():
29 p = point(y=27, x=42)
30 assert repr(p) == "point(42, 27)"
31 assert str(p) == "(42, 27)"
32 assert p.x == 42
33 assert p.y == 27
34
35
36def test_points():

Callers

nothing calls this directly

Calls 3

pointClass · 0.90
reprFunction · 0.85
strClass · 0.85

Tested by

no test coverage detected