aboutsummaryrefslogtreecommitdiff
path: root/test/behavior/math.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-02-17 20:23:33 -0700
committerAndrew Kelley <andrew@ziglang.org>2023-02-18 19:17:21 -0700
commitf0530385b57218ef323747bdb7438330a07d25cc (patch)
tree07d87e78355e518aa67ea48e3cdf1a242917a5d7 /test/behavior/math.zig
parent321ccbdc525ab0f5862e42378b962c10ec54e4a1 (diff)
downloadzig-f0530385b57218ef323747bdb7438330a07d25cc.tar.gz
zig-f0530385b57218ef323747bdb7438330a07d25cc.zip
update existing behavior tests and std lib to new for loop semantics
Diffstat (limited to 'test/behavior/math.zig')
-rw-r--r--test/behavior/math.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/behavior/math.zig b/test/behavior/math.zig
index c5e36da383..8ab8614605 100644
--- a/test/behavior/math.zig
+++ b/test/behavior/math.zig
@@ -1221,7 +1221,7 @@ test "quad hex float literal parsing accurate" {
0xb6a0000000000000,
};
- for (exp2ft) |x, i| {
+ for (exp2ft, 0..) |x, i| {
try expect(@bitCast(u64, x) == answers[i]);
}
}