authorgravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2020-06-20 22:20:23-07:00
committergravatar for squeek502@hotmail.comRyan Liptak <squeek502@hotmail.com> 2020-06-20 22:20:23-07:00
logb216d8de886b1d3b3cebb279864ec6bc91216d3e
tree6fd675d6b1f68a509716cc85b1b53d66d20371e9
parentb5f90244a436b74470caedcbfbb459cb2ad90203

Simplify unformatted code in zig fmt cli test


1 files changed, 1 insertions(+), 5 deletions(-)

test/cli.zig+1-5
......@@ -148,11 +148,7 @@ fn testMissingOutputPath(zig_exe: []const u8, dir_path: []const u8) !void {
148148fn testZigFmt(zig_exe: []const u8, dir_path: []const u8) !void {
149149 _ = try exec(dir_path, &[_][]const u8{ zig_exe, "init-exe" });
150150
151 const unformatted_code =
152 \\fn square(num: i32) i32 {
153 \\return num * num;
154 \\}
155 ;
151 const unformatted_code = " // no reason for indent";
156152
157153 const fmt1_zig_path = try fs.path.join(a, &[_][]const u8{ dir_path, "fmt1.zig" });
158154 try fs.cwd().writeFile(fmt1_zig_path, unformatted_code);