()
| 286 | |
| 287 | #[test] |
| 288 | fn polygon_roundtrip() { |
| 289 | let geom = Geometry::polygon(vec![vec![ |
| 290 | [0.0, 0.0], |
| 291 | [10.0, 0.0], |
| 292 | [10.0, 10.0], |
| 293 | [0.0, 10.0], |
| 294 | [0.0, 0.0], |
| 295 | ]]); |
| 296 | let wkt = geometry_to_wkt(&geom); |
| 297 | assert!(wkt.starts_with("POLYGON(")); |
| 298 | let parsed = geometry_from_wkt(&wkt).unwrap(); |
| 299 | assert_eq!(geom, parsed); |
| 300 | } |
| 301 | |
| 302 | #[test] |
| 303 | fn polygon_with_hole_roundtrip() { |
nothing calls this directly
no test coverage detected