()
| 354 | |
| 355 | #[test] |
| 356 | fn union_points() { |
| 357 | let a = Geometry::point(1.0, 2.0); |
| 358 | let b = Geometry::point(3.0, 4.0); |
| 359 | let u = st_union(&a, &b); |
| 360 | if let Geometry::MultiPoint { coordinates } = &u { |
| 361 | assert_eq!(coordinates.len(), 2); |
| 362 | } else { |
| 363 | panic!("expected MultiPoint, got {:?}", u.geometry_type()); |
| 364 | } |
| 365 | } |
| 366 | |
| 367 | #[test] |
| 368 | fn union_polygons() { |
nothing calls this directly
no test coverage detected