Test Point comparison for sorting.
()
| 186 | |
| 187 | |
| 188 | def test_point_comparison() -> None: |
| 189 | """Test Point comparison for sorting.""" |
| 190 | p1 = Point(1, 2) |
| 191 | p2 = Point(1, 3) |
| 192 | p3 = Point(2, 2) |
| 193 | |
| 194 | assert p1 < p2 # Lower y value |
| 195 | assert p1 < p3 # Same y, lower x |
| 196 | assert not p2 < p1 |
| 197 | |
| 198 | |
| 199 | def test_euclidean_distance() -> None: |