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

Method test_point_creation

geometry/tests/test_jarvis_march.py:11–15  ·  view source on GitHub ↗

Test Point initialization.

(self)

Source from the content-addressed store, hash-verified

9 """Tests for the Point class."""
10
11 def test_point_creation(self) -> None:
12 """Test Point initialization."""
13 p = Point(1.0, 2.0)
14 assert p.x == 1.0
15 assert p.y == 2.0
16
17 def test_point_equality(self) -> None:
18 """Test Point equality comparison."""

Callers

nothing calls this directly

Calls 1

PointClass · 0.90

Tested by

no test coverage detected