()
| 59 | |
| 60 | #[test] |
| 61 | fn test_scale() { |
| 62 | let input = b"\ |
| 63 | POINT(0 0)\n\ |
| 64 | POINT(1 0)\n\ |
| 65 | POINT(0 2)\n\ |
| 66 | "; |
| 67 | let expected = "\ |
| 68 | POINT(0 0)\n\ |
| 69 | POINT(2 0)\n\ |
| 70 | POINT(0 4)\n\ |
| 71 | "; |
| 72 | let output = tool("transform") |
| 73 | .arg("--scale=2") |
| 74 | .write_stdin(input) |
| 75 | .captured_output(); |
| 76 | assert!(output.status.success()); |
| 77 | let stdout = String::from_utf8_lossy(&output.stdout); |
| 78 | assert_eq!(expected, stdout); |
| 79 | } |
| 80 | |
| 81 | #[test] |
| 82 | fn test_offset() { |
nothing calls this directly
no test coverage detected