| ... | ... | @@ -148,11 +148,7 @@ fn testMissingOutputPath(zig_exe: []const u8, dir_path: []const u8) !void { |
| 148 | 148 | fn testZigFmt(zig_exe: []const u8, dir_path: []const u8) !void { |
| 149 | 149 | _ = try exec(dir_path, &[_][]const u8{ zig_exe, "init-exe" }); |
| 150 | 150 | |
| 151 | | const unformatted_code = |
| 152 | | \\fn square(num: i32) i32 { |
| 153 | | \\return num * num; |
| 154 | | \\} |
| 155 | | ; |
| 151 | const unformatted_code = " // no reason for indent"; |
| 156 | 152 | |
| 157 | 153 | const fmt1_zig_path = try fs.path.join(a, &[_][]const u8{ dir_path, "fmt1.zig" }); |
| 158 | 154 | try fs.cwd().writeFile(fmt1_zig_path, unformatted_code); |