()
| 80 | |
| 81 | #[test] |
| 82 | fn test_offset() { |
| 83 | let input = b"\ |
| 84 | POINT(0 0)\n\ |
| 85 | "; |
| 86 | let expected = "\ |
| 87 | POINT(1 -1)\n\ |
| 88 | "; |
| 89 | let output = tool("transform") |
| 90 | .arg("--offset-x=1") |
| 91 | .arg("--offset-y=-1") |
| 92 | .write_stdin(input) |
| 93 | .captured_output(); |
| 94 | assert!(output.status.success()); |
| 95 | let stdout = String::from_utf8_lossy(&output.stdout); |
| 96 | assert_eq!(expected, stdout); |
| 97 | } |
| 98 | |
| 99 | #[test] |
| 100 | fn test_skew_x() { |
nothing calls this directly
no test coverage detected