diff options
| author | xackus <14938807+xackus@users.noreply.github.com> | 2020-04-02 00:00:42 +0200 |
|---|---|---|
| committer | xackus <14938807+xackus@users.noreply.github.com> | 2020-04-02 16:12:08 +0200 |
| commit | 7a28c644aa8eb3d27dee113338af8278f8f6334f (patch) | |
| tree | de1a483b9d9fa9224a50c94522da6bb3308b016c /test/tests.zig | |
| parent | d3ab0eb28de5a5a94fd4ef988dd4c4b0e3ddf927 (diff) | |
| download | zig-7a28c644aa8eb3d27dee113338af8278f8f6334f.tar.gz zig-7a28c644aa8eb3d27dee113338af8278f8f6334f.zip | |
new ArrayList API: fix everything else
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 7f3e55ec7a..dc94cce811 100644 --- a/test/tests.zig +++ b/test/tests.zig @@ -864,13 +864,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", .{}); |
