diff options
Diffstat (limited to 'lib/std/math/atan.zig')
| -rw-r--r-- | lib/std/math/atan.zig | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/std/math/atan.zig b/lib/std/math/atan.zig index ebd4b8ca5a..377d96897f 100644 --- a/lib/std/math/atan.zig +++ b/lib/std/math/atan.zig @@ -212,12 +212,12 @@ fn atan64(x_: f64) f64 { } } -test "math.atan" { +test atan { try expect(@as(u32, @bitCast(atan(@as(f32, 0.2)))) == @as(u32, @bitCast(atan32(0.2)))); try expect(atan(@as(f64, 0.2)) == atan64(0.2)); } -test "math.atan32" { +test atan32 { const epsilon = 0.000001; try expect(math.approxEqAbs(f32, atan32(0.2), 0.197396, epsilon)); @@ -227,7 +227,7 @@ test "math.atan32" { try expect(math.approxEqAbs(f32, atan32(1.5), 0.982794, epsilon)); } -test "math.atan64" { +test atan64 { const epsilon = 0.000001; try expect(math.approxEqAbs(f64, atan64(0.2), 0.197396, epsilon)); @@ -237,7 +237,7 @@ test "math.atan64" { try expect(math.approxEqAbs(f64, atan64(1.5), 0.982794, epsilon)); } -test "math.atan32.special" { +test "atan32.special" { const epsilon = 0.000001; try expect(math.isPositiveZero(atan32(0.0))); @@ -246,7 +246,7 @@ test "math.atan32.special" { try expect(math.approxEqAbs(f32, atan32(-math.inf(f32)), -math.pi / 2.0, epsilon)); } -test "math.atan64.special" { +test "atan64.special" { const epsilon = 0.000001; try expect(math.isPositiveZero(atan64(0.0))); |
