aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
authorEric Joldasov <bratishkaerik@getgoogleoff.me>2023-06-04 23:09:17 +0600
committerEric Joldasov <bratishkaerik@getgoogleoff.me>2023-06-13 23:45:12 +0600
commitd04a262a3d7e68920dec2a6becc86bf79d81452c (patch)
tree7b839339d5a11e493cb6ffb58626005f94e98ea2 /lib/std/testing.zig
parenteb4439f1e4e617247bffff13478a9fa57160c507 (diff)
downloadzig-d04a262a3d7e68920dec2a6becc86bf79d81452c.tar.gz
zig-d04a262a3d7e68920dec2a6becc86bf79d81452c.zip
std.math: hard deprecate obsolete constants (soft deprecated in 0.10)
Followup to 5b8ac9821dd25c3e5282130b4d93d6c5b7debb08. Signed-off-by: Eric Joldasov <bratishkaerik@getgoogleoff.me>
Diffstat (limited to 'lib/std/testing.zig')
-rw-r--r--lib/std/testing.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/testing.zig b/lib/std/testing.zig
index fa131122bb..6b1e0bb640 100644
--- a/lib/std/testing.zig
+++ b/lib/std/testing.zig
@@ -263,7 +263,7 @@ pub fn expectApproxEqRel(expected: anytype, actual: @TypeOf(expected), tolerance
test "expectApproxEqRel" {
inline for ([_]type{ f16, f32, f64, f128 }) |T| {
- const eps_value = comptime math.epsilon(T);
+ const eps_value = comptime math.floatEps(T);
const sqrt_eps_value = comptime @sqrt(eps_value);
const pos_x: T = 12.0;