aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/atan2.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/atan2.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/atan2.zig')
-rw-r--r--lib/std/math/atan2.zig10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/std/math/atan2.zig b/lib/std/math/atan2.zig
index a60fa73e8c..f0c8aa0792 100644
--- a/lib/std/math/atan2.zig
+++ b/lib/std/math/atan2.zig
@@ -214,7 +214,7 @@ fn atan2_64(y: f64, x: f64) f64 {
}
}
-test "math.atan2" {
+test atan2 {
const y32: f32 = 0.2;
const x32: f32 = 0.21;
const y64: f64 = 0.2;
@@ -223,7 +223,7 @@ test "math.atan2" {
try expect(atan2(y64, x64) == atan2_64(0.2, 0.21));
}
-test "math.atan2_32" {
+test atan2_32 {
const epsilon = 0.000001;
try expect(math.approxEqAbs(f32, atan2_32(0.0, 0.0), 0.0, epsilon));
@@ -235,7 +235,7 @@ test "math.atan2_32" {
try expect(math.approxEqAbs(f32, atan2_32(0.34, 1.243), 0.267001, epsilon));
}
-test "math.atan2_64" {
+test atan2_64 {
const epsilon = 0.000001;
try expect(math.approxEqAbs(f64, atan2_64(0.0, 0.0), 0.0, epsilon));
@@ -247,7 +247,7 @@ test "math.atan2_64" {
try expect(math.approxEqAbs(f64, atan2_64(0.34, 1.243), 0.267001, epsilon));
}
-test "math.atan2_32.special" {
+test "atan2_32.special" {
const epsilon = 0.000001;
try expect(math.isNan(atan2_32(1.0, math.nan(f32))));
@@ -271,7 +271,7 @@ test "math.atan2_32.special" {
try expect(math.approxEqAbs(f32, atan2_32(-math.inf(f32), 1.0), -math.pi / 2.0, epsilon));
}
-test "math.atan2_64.special" {
+test "atan2_64.special" {
const epsilon = 0.000001;
try expect(math.isNan(atan2_64(1.0, math.nan(f64))));