()
| 342 | |
| 343 | #[test] |
| 344 | fn envelope_point() { |
| 345 | let env = st_envelope(&Geometry::point(5.0, 10.0)); |
| 346 | if let Geometry::Polygon { coordinates } = &env { |
| 347 | // Zero-area bbox → degenerate polygon. |
| 348 | assert_eq!(coordinates[0][0], [5.0, 10.0]); |
| 349 | assert_eq!(coordinates[0][2], [5.0, 10.0]); |
| 350 | } else { |
| 351 | panic!("expected Polygon"); |
| 352 | } |
| 353 | } |
| 354 | |
| 355 | #[test] |
| 356 | fn union_points() { |
nothing calls this directly
no test coverage detected