aboutsummaryrefslogtreecommitdiff
path: root/test/tests.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2017-09-11 22:58:06 -0400
committerAndrew Kelley <superjoe30@gmail.com>2017-09-11 22:58:06 -0400
commit4bd23aefe7c96063b31433d26b7135b890996b02 (patch)
tree4c14ee32fb0a3c041c382413cbac29d60081fe18 /test/tests.zig
parent373785ae8d49d0ae3785020f05573763268ee9e1 (diff)
downloadzig-4bd23aefe7c96063b31433d26b7135b890996b02.tar.gz
zig-4bd23aefe7c96063b31433d26b7135b890996b02.zip
local var
Diffstat (limited to 'test/tests.zig')
-rw-r--r--test/tests.zig4
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;
}