diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-12-22 00:50:30 -0500 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-12-22 00:50:30 -0500 |
| commit | d917815d8111b98dc237cbe2c723fa63018e02b1 (patch) | |
| tree | ce12771a86b2412ee9692ca73d3ca49abe5da3ce /test/tests.zig | |
| parent | 8bc523219c66427951e5339550502871547f2138 (diff) | |
| download | zig-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.zig | 6 |
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(); |
