aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-02-18 12:56:17 -0500
committerAndrew Kelley <andrew@ziglang.org>2019-02-18 13:05:26 -0500
commit7a84fe79b9d61bb3d4e21c169cc2b58722b194ce (patch)
tree1d44cdfafe00762e388d3114a0b9d44bb3bc0c4d /test/tests.zig
parent9b3013d2f6e416f31610f3dc94c5ff8b44836463 (diff)
downloadzig-7a84fe79b9d61bb3d4e21c169cc2b58722b194ce.tar.gz
zig-7a84fe79b9d61bb3d4e21c169cc2b58722b194ce.zip
pull request fixups
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig12
1 files changed, 4 insertions, 8 deletions
diff --git a/test/tests.zig b/test/tests.zig
index 656c05cb9b..f9c9207f05 100644
--- a/test/tests.zig
+++ b/test/tests.zig
@@ -572,9 +572,7 @@ pub const CompileErrorContext = struct {
const source_file = ".tmp_source.zig";
fn init(input: []const u8) ErrLineIter {
- return ErrLineIter {
- .lines = mem.separate(input, "\n"),
- };
+ return ErrLineIter{ .lines = mem.separate(input, "\n") };
}
fn next(self: *ErrLineIter) ?[]const u8 {
@@ -718,11 +716,10 @@ pub const CompileErrorContext = struct {
for (self.case.expected_errors.toSliceConst()) |expected| {
if (mem.indexOf(u8, stderr, expected) == null) {
warn(
- \\=========== Expected compile error: ============
+ \\\n=========== Expected compile error: ============
\\{}
\\
- , expected
- );
+ , expected);
ok = false;
break;
}
@@ -734,8 +731,7 @@ pub const CompileErrorContext = struct {
\\================= Full output: =================
\\{}
\\
- , stderr
- );
+ , stderr);
return error.TestFailed;
}