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

Function test_collinear_points

geometry/tests/test_graham_scan.py:30–39  ·  view source on GitHub ↗

Test with all points on the same line.

()

Source from the content-addressed store, hash-verified

28
29
30def test_collinear_points() -> None:
31 """Test with all points on the same line."""
32 points = [
33 Point(1, 0),
34 Point(2, 0),
35 Point(3, 0),
36 Point(4, 0),
37 Point(5, 0),
38 ]
39 assert graham_scan(points) == []
40
41
42def test_triangle() -> None:

Callers

nothing calls this directly

Calls 2

PointClass · 0.90
graham_scanFunction · 0.90

Tested by

no test coverage detected