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

Function test_euclidean_distance

geometry/tests/test_graham_scan.py:199–204  ·  view source on GitHub ↗

Test Euclidean distance calculation.

()

Source from the content-addressed store, hash-verified

197
198
199def test_euclidean_distance() -> None:
200 """Test Euclidean distance calculation."""
201 p1 = Point(0, 0)
202 p2 = Point(3, 4)
203
204 assert p1.euclidean_distance(p2) == 5.0
205
206
207def test_consecutive_orientation() -> None:

Callers

nothing calls this directly

Calls 2

euclidean_distanceMethod · 0.95
PointClass · 0.90

Tested by

no test coverage detected