()
| 115 | |
| 116 | #[test] |
| 117 | fn test_triangle() { |
| 118 | let expected = "\ |
| 119 | POINT(0 0)\n\ |
| 120 | POINT(1 0)\n\ |
| 121 | POINT(2 0)\n\ |
| 122 | POINT(0 1)\n\ |
| 123 | POINT(1 1)\n\ |
| 124 | POINT(2 1)\n\ |
| 125 | POINT(0 2)\n\ |
| 126 | POINT(1 2)\n\ |
| 127 | POINT(2 2)\n\ |
| 128 | "; |
| 129 | |
| 130 | let output = tool("grid") |
| 131 | .arg("--grid-type=quad") |
| 132 | .arg("--output-format=points") |
| 133 | .arg("--width=2") |
| 134 | .arg("--height=2") |
| 135 | .captured_output(); |
| 136 | assert!(output.status.success()); |
| 137 | let stdout = String::from_utf8_lossy(&output.stdout); |
| 138 | assert_eq!(expected, stdout); |
| 139 | } |
| 140 | |
| 141 | #[test] |
| 142 | fn test_quad() { |
nothing calls this directly
no test coverage detected