aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-12-22 00:50:30 -0500
committerAndrew Kelley <superjoe30@gmail.com>2017-12-22 00:50:30 -0500
commitd917815d8111b98dc237cbe2c723fa63018e02b1 (patch)
treece12771a86b2412ee9692ca73d3ca49abe5da3ce /test/tests.zig
parent8bc523219c66427951e5339550502871547f2138 (diff)
downloadzig-d917815d8111b98dc237cbe2c723fa63018e02b1.tar.gz
zig-d917815d8111b98dc237cbe2c723fa63018e02b1.zip
explicitly return from blocks
instead of last statement being expression value closes #629
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/tests.zig b/test/tests.zig
index a5eb9d4db9..a184045125 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -284,7 +284,7 @@ pub const CompareOutputContext = struct {
warn("Process {} terminated unexpectedly\n", full_exe_path);
return error.TestFailed;
},
- };
+ }
if (!mem.eql(u8, self.expected_output, stdout.toSliceConst())) {
@@ -615,7 +615,7 @@ pub const CompileErrorContext = struct {
warn("Process {} terminated unexpectedly\n", b.zig_exe);
return error.TestFailed;
},
- };
+ }
const stdout = stdout_buf.toSliceConst();
@@ -891,7 +891,7 @@ pub const TranslateCContext = struct {
warn("Compilation terminated unexpectedly\n");
return error.TestFailed;
},
- };
+ }
const stdout = stdout_buf.toSliceConst();
const stderr = stderr_buf.toSliceConst();