diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-09-11 22:58:06 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-09-11 22:58:06 -0400 |
| commit | 4bd23aefe7c96063b31433d26b7135b890996b02 (patch) | |
| tree | 4c14ee32fb0a3c041c382413cbac29d60081fe18 /test/tests.zig | |
| parent | 373785ae8d49d0ae3785020f05573763268ee9e1 (diff) | |
| download | zig-4bd23aefe7c96063b31433d26b7135b890996b02.tar.gz zig-4bd23aefe7c96063b31433d26b7135b890996b02.zip | |
local var
Diffstat (limited to 'test/tests.zig')
| -rw-r--r-- | test/tests.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tests.zig b/test/tests.zig index 8832b85254..19881e8471 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -776,7 +776,7 @@ pub const ParseCContext = struct { }); } - pub fn addExpectedError(self: &TestCase, text: []const u8) { + pub fn addExpectedLine(self: &TestCase, text: []const u8) { %%self.expected_lines.append(text); } }; @@ -901,7 +901,7 @@ pub const ParseCContext = struct { tc.addSourceFile("source.h", source); comptime var arg_i = 0; inline while (arg_i < expected_lines.len) : (arg_i += 1) { - tc.addExpectedError(expected_lines[arg_i]); + tc.addExpectedLine(expected_lines[arg_i]); } return tc; } |
