Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheAlgorithms/Python
/ test_point_hash
Method
test_point_hash
geometry/tests/test_jarvis_march.py:30–34 ·
view source on GitHub ↗
Test Point hashing.
(self)
Source
from the content-addressed store, hash-verified
28
assert repr(p) ==
"Point(1.5, 2.5)"
29
30
def
test_point_hash(self) -> None:
31
""
"Test Point hashing."
""
32
p1 = Point(1.0, 2.0)
33
p2 = Point(1.0, 2.0)
34
assert hash(p1) == hash(p2)
35
36
37
class
TestJarvisMarch:
Callers
nothing calls this directly
Calls
1
Point
Class · 0.90
Tested by
no test coverage detected