aboutsummaryrefslogtreecommitdiff
path: root/lib/std/testing.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2023-06-13 14:53:41 -0700
committerGitHub <noreply@github.com>2023-06-13 14:53:41 -0700
commit38fc826a5a82bbe11a893be11d3cc1439c477ee8 (patch)
treea6f1d07274887a20818b8e9f0798f1f74c318de5 /lib/std/testing.zig
parent700ea694b293565ececb7571e4d9613d2c143ca6 (diff)
parentd884d7050e061c620324aaaabfba507e08cb40f4 (diff)
downloadzig-38fc826a5a82bbe11a893be11d3cc1439c477ee8.tar.gz
zig-38fc826a5a82bbe11a893be11d3cc1439c477ee8.zip
Merge pull request #15957 from BratishkaErik/deprecated-
std.*: remove stuff that was deprecated in older versions
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;