mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
update compare-output test case to new for loop syntax
This commit is contained in:
parent
74db8c2e83
commit
e89bfedd8d
@ -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();
|
||||
\\ }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user