diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-18 15:56:29 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-02-18 19:20:19 -0700 |
| commit | e89bfedd8d68a731cb227327a325e16fc7812df9 (patch) | |
| tree | 20d2e3a43ec47a07e4b21b097f3045a3e07010a6 /test | |
| parent | 74db8c2e8348cb7e9bf264294f73d26be956ea61 (diff) | |
| download | zig-e89bfedd8d68a731cb227327a325e16fc7812df9.tar.gz zig-e89bfedd8d68a731cb227327a325e16fc7812df9.zip | |
update compare-output test case to new for loop syntax
Diffstat (limited to 'test')
| -rw-r--r-- | test/compare_output.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/compare_output.zig b/test/compare_output.zig index b3a6144729..e2525eb119 100644 --- a/test/compare_output.zig +++ b/test/compare_output.zig @@ -196,7 +196,7 @@ pub fn addCases(cases: *tests.CompareOutputContext) void { \\ \\ c.qsort(@ptrCast(?*anyopaque, &array), @intCast(c_ulong, array.len), @sizeOf(i32), compare_fn); \\ - \\ for (array) |item, i| { + \\ for (array, 0..) |item, i| { \\ if (item != i) { \\ c.abort(); \\ } |
