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