commit e89bfedd8d68a731cb227327a325e16fc7812df9 (tree)
parent 74db8c2e8348cb7e9bf264294f73d26be956ea61
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sat, 18 Feb 2023 15:56:29 -0700
update compare-output test case to new for loop syntax
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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();
\\ }