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

Method test_two_points

geometry/tests/test_jarvis_march.py:85–87  ·  view source on GitHub ↗

Test two points return empty hull.

(self)

Source from the content-addressed store, hash-verified

83 assert jarvis_march([Point(0, 0)]) == []
84
85 def test_two_points(self) -> None:
86 """Test two points return empty hull."""
87 assert jarvis_march([Point(0, 0), Point(1, 1)]) == []
88
89 def test_square(self) -> None:
90 """Test convex hull of a square."""

Callers

nothing calls this directly

Calls 2

jarvis_marchFunction · 0.90
PointClass · 0.90

Tested by

no test coverage detected