MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / test_point_repr

Method test_point_repr

geometry/tests/test_jarvis_march.py:25–28  ·  view source on GitHub ↗

Test Point string representation.

(self)

Source from the content-addressed store, hash-verified

23 assert p1 != p3
24
25 def test_point_repr(self) -> None:
26 """Test Point string representation."""
27 p = Point(1.5, 2.5)
28 assert repr(p) == "Point(1.5, 2.5)"
29
30 def test_point_hash(self) -> None:
31 """Test Point hashing."""

Callers

nothing calls this directly

Calls 1

PointClass · 0.90

Tested by

no test coverage detected