()
| 327 | |
| 328 | #[test] |
| 329 | fn narrow_corridor() { |
| 330 | // Very narrow polygon: should produce 1-2 sweeps |
| 331 | let polygon = rect_polygon(10.0, 0.8); |
| 332 | let config = CoverageConfig { |
| 333 | tool_width: 1.0, |
| 334 | overlap_pct: 0.0, |
| 335 | swath_angle: Some(0.0), |
| 336 | }; |
| 337 | let result = generate(&polygon, &config).unwrap(); |
| 338 | assert!(result.num_sweeps >= 1 && result.num_sweeps <= 2); |
| 339 | } |
| 340 | |
| 341 | #[test] |
| 342 | fn rejects_invalid_input() { |
nothing calls this directly
no test coverage detected