aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/atan.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-02-26 23:43:02 -0800
committerGitHub <noreply@github.com>2024-02-26 23:43:02 -0800
commit085bde6889925b486291ddf1450b6bb6c8562a8f (patch)
tree02f7a49b4378dc2387b825bfc19825405f4502ca /lib/std/math/atan.zig
parent4e2570baafb587c679ee0fc5e113ddeb36522a5d (diff)
parent726a1149e05669e5cc05a16ce877bbb2be787e39 (diff)
downloadzig-085bde6889925b486291ddf1450b6bb6c8562a8f.tar.gz
zig-085bde6889925b486291ddf1450b6bb6c8562a8f.zip
Merge pull request #19087 from squeek502/redundant-test-naming
Remove redundant test name prefixes now that test names are fully qualified
Diffstat (limited to 'lib/std/math/atan.zig')
-rw-r--r--lib/std/math/atan.zig10
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)));