()
| 4 | |
| 5 | #[test] |
| 6 | fn test_smooth_unit_square() { |
| 7 | let input = b"POLYGON ((0 0, 0 1, 1 1, 1 0, 0 0))\n"; |
| 8 | |
| 9 | let expected = "\ |
| 10 | POLYGON((0 0.25,0 0.75,0.25 1,0.75 1,1 0.75,1 0.25,0.75 0,0.25 0,0 0.25))\n\ |
| 11 | "; |
| 12 | |
| 13 | let output = tool("smooth") |
| 14 | .arg("--iterations=1") |
| 15 | .write_stdin(input) |
| 16 | .captured_output(); |
| 17 | assert!(output.status.success()); |
| 18 | let stdout = String::from_utf8_lossy(&output.stdout); |
| 19 | assert_eq!(expected, stdout); |
| 20 | } |
nothing calls this directly
no test coverage detected