()
| 115 | |
| 116 | #[test] |
| 117 | fn test_polar() { |
| 118 | let input = b"\ |
| 119 | LINESTRING(0 0, 0 1)\n\ |
| 120 | "; |
| 121 | let expected = "\ |
| 122 | LINESTRING(0 0,1 1.5707963267948966)\n\ |
| 123 | "; |
| 124 | let output = tool("transform") |
| 125 | .arg("--to-polar") |
| 126 | .write_stdin(input) |
| 127 | .captured_output(); |
| 128 | assert!(output.status.success()); |
| 129 | let stdout = String::from_utf8_lossy(&output.stdout); |
| 130 | assert_eq!(expected, stdout); |
| 131 | } |
| 132 | |
| 133 | #[test] |
| 134 | fn fit_to_range() { |
nothing calls this directly
no test coverage detected