diff options
| author | Eric Joldasov <bratishkaerik@getgoogleoff.me> | 2023-06-04 23:09:17 +0600 |
|---|---|---|
| committer | Eric Joldasov <bratishkaerik@getgoogleoff.me> | 2023-06-13 23:45:12 +0600 |
| commit | d04a262a3d7e68920dec2a6becc86bf79d81452c (patch) | |
| tree | 7b839339d5a11e493cb6ffb58626005f94e98ea2 /lib/std/testing.zig | |
| parent | eb4439f1e4e617247bffff13478a9fa57160c507 (diff) | |
| download | zig-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.zig | 2 |
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; |
