MCPcopy Index your code
hub / github.com/TheAlgorithms/Python / test_point_comparison

Function test_point_comparison

geometry/tests/test_graham_scan.py:188–196  ·  view source on GitHub ↗

Test Point comparison for sorting.

()

Source from the content-addressed store, hash-verified

186
187
188def test_point_comparison() -> None:
189 """Test Point comparison for sorting."""
190 p1 = Point(1, 2)
191 p2 = Point(1, 3)
192 p3 = Point(2, 2)
193
194 assert p1 < p2 # Lower y value
195 assert p1 < p3 # Same y, lower x
196 assert not p2 < p1
197
198
199def test_euclidean_distance() -> None:

Callers

nothing calls this directly

Calls 1

PointClass · 0.90

Tested by

no test coverage detected