| ... | ... | @@ -165,4 +165,8 @@ fn testZigFmt(zig_exe: []const u8, dir_path: []const u8) !void { |
| 165 | 165 | // running it on the dir, only the new file should be changed |
| 166 | 166 | testing.expect(std.mem.startsWith(u8, run_result2.stderr, fmt2_zig_path)); |
| 167 | 167 | testing.expect(run_result2.stderr.len == fmt2_zig_path.len + 1 and run_result2.stderr[run_result2.stderr.len - 1] == '\n'); |
| 168 | |
| 169 | const run_result3 = try exec(dir_path, &[_][]const u8{ zig_exe, "fmt", dir_path }); |
| 170 | // both files have been formatted, nothing should change now |
| 171 | testing.expect(run_result3.stderr.len == 0); |
| 168 | 172 | } |