From b216d8de886b1d3b3cebb279864ec6bc91216d3e Mon Sep 17 00:00:00 2001 From: Ryan Liptak Date: Sat, 20 Jun 2020 22:20:23 -0700 Subject: Simplify unformatted code in zig fmt cli test --- test/cli.zig | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'test/cli.zig') diff --git a/test/cli.zig b/test/cli.zig index 4c28827ba8..410fa97c8f 100644 --- a/test/cli.zig +++ b/test/cli.zig @@ -148,11 +148,7 @@ fn testMissingOutputPath(zig_exe: []const u8, dir_path: []const u8) !void { fn testZigFmt(zig_exe: []const u8, dir_path: []const u8) !void { _ = try exec(dir_path, &[_][]const u8{ zig_exe, "init-exe" }); - const unformatted_code = - \\fn square(num: i32) i32 { - \\return num * num; - \\} - ; + const unformatted_code = " // no reason for indent"; const fmt1_zig_path = try fs.path.join(a, &[_][]const u8{ dir_path, "fmt1.zig" }); try fs.cwd().writeFile(fmt1_zig_path, unformatted_code); -- cgit v1.2.3