diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2023-02-17 20:23:33 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2023-02-18 19:17:21 -0700 |
| commit | f0530385b57218ef323747bdb7438330a07d25cc (patch) | |
| tree | 07d87e78355e518aa67ea48e3cdf1a242917a5d7 /test/behavior/array.zig | |
| parent | 321ccbdc525ab0f5862e42378b962c10ec54e4a1 (diff) | |
| download | zig-f0530385b57218ef323747bdb7438330a07d25cc.tar.gz zig-f0530385b57218ef323747bdb7438330a07d25cc.zip | |
update existing behavior tests and std lib to new for loop semantics
Diffstat (limited to 'test/behavior/array.zig')
| -rw-r--r-- | test/behavior/array.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/behavior/array.zig b/test/behavior/array.zig index 012e078531..a5ecd6f115 100644 --- a/test/behavior/array.zig +++ b/test/behavior/array.zig @@ -185,7 +185,7 @@ test "nested arrays of strings" { if (builtin.zig_backend == .stage2_sparc64) return error.SkipZigTest; // TODO const array_of_strings = [_][]const u8{ "hello", "this", "is", "my", "thing" }; - for (array_of_strings) |s, i| { + for (array_of_strings, 0..) |s, i| { if (i == 0) try expect(mem.eql(u8, s, "hello")); if (i == 1) try expect(mem.eql(u8, s, "this")); if (i == 2) try expect(mem.eql(u8, s, "is")); |
