Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
28
def
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
36
def
test_points():
Callers
nothing calls this directly
Calls
3
point
Class · 0.90
repr
Function · 0.85
str
Class · 0.85
Tested by
no test coverage detected