()
| 366 | |
| 367 | #[test] |
| 368 | fn union_polygons() { |
| 369 | let a = Geometry::polygon(vec![vec![[0.0, 0.0], [1.0, 0.0], [1.0, 1.0], [0.0, 0.0]]]); |
| 370 | let b = Geometry::polygon(vec![vec![[2.0, 2.0], [3.0, 2.0], [3.0, 3.0], [2.0, 2.0]]]); |
| 371 | let u = st_union(&a, &b); |
| 372 | if let Geometry::MultiPolygon { coordinates } = &u { |
| 373 | assert_eq!(coordinates.len(), 2); |
| 374 | } else { |
| 375 | panic!("expected MultiPolygon"); |
| 376 | } |
| 377 | } |
| 378 | |
| 379 | #[test] |
| 380 | fn union_mixed_types() { |
nothing calls this directly
no test coverage detected