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

Method test_point_equality

geometry/tests/test_jarvis_march.py:17–23  ·  view source on GitHub ↗

Test Point equality comparison.

(self)

Source from the content-addressed store, hash-verified

15 assert p.y == 2.0
16
17 def test_point_equality(self) -> None:
18 """Test Point equality comparison."""
19 p1 = Point(1.0, 2.0)
20 p2 = Point(1.0, 2.0)
21 p3 = Point(2.0, 1.0)
22 assert p1 == p2
23 assert p1 != p3
24
25 def test_point_repr(self) -> None:
26 """Test Point string representation."""

Callers

nothing calls this directly

Calls 1

PointClass · 0.90

Tested by

no test coverage detected