diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-04-03 22:31:15 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-03 22:31:15 -0400 |
| commit | e89c42655cf9851cdf02065bc75cda0e27884966 (patch) | |
| tree | b25e26e53ceda1ac03e65de5d483491ee46e7c0e /test/tests.zig | |
| parent | 1568470c44eafb59425c070ea9884b78cc2516b2 (diff) | |
| parent | 7a28c644aa8eb3d27dee113338af8278f8f6334f (diff) | |
| download | zig-e89c42655cf9851cdf02065bc75cda0e27884966.tar.gz zig-e89c42655cf9851cdf02065bc75cda0e27884966.zip | |
Merge pull request #4868 from xackus/new-arraylist-api
new ArrayList API
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 8ad5803184..e66ae7296a 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -879,13 +879,13 @@ pub const CompileErrorContext = struct { var err_iter = ErrLineIter.init(stderr); var i: usize = 0; ok = while (err_iter.next()) |line| : (i += 1) { - if (i >= self.case.expected_errors.len) break false; + if (i >= self.case.expected_errors.items.len) break false; const expected = self.case.expected_errors.at(i); if (mem.indexOf(u8, line, expected) == null) break false; continue; } else true; - ok = ok and i == self.case.expected_errors.len; + ok = ok and i == self.case.expected_errors.items.len; if (!ok) { warn("\n======== Expected these compile errors: ========\n", .{}); |
