Test Point equality comparison.
(self)
| 15 | assert p.y == 2.0 |
| 16 | |
| 17 | def test_point_equality(self) -> None: |
| 18 | """Test Point equality comparison.""" |
| 19 | p1 = Point(1.0, 2.0) |
| 20 | p2 = Point(1.0, 2.0) |
| 21 | p3 = Point(2.0, 1.0) |
| 22 | assert p1 == p2 |
| 23 | assert p1 != p3 |
| 24 | |
| 25 | def test_point_repr(self) -> None: |
| 26 | """Test Point string representation.""" |