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

Function test_duplicate_points

geometry/tests/test_graham_scan.py:23–27  ·  view source on GitHub ↗

Test with all duplicate points.

()

Source from the content-addressed store, hash-verified

21
22
23def test_duplicate_points() -> None:
24 """Test with all duplicate points."""
25 p = Point(0, 0)
26 points = [p, Point(0, 0), Point(0, 0), Point(0, 0), Point(0, 0)]
27 assert graham_scan(points) == []
28
29
30def test_collinear_points() -> None:

Callers

nothing calls this directly

Calls 2

PointClass · 0.90
graham_scanFunction · 0.90

Tested by

no test coverage detected