diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2024-02-26 23:43:02 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-26 23:43:02 -0800 |
| commit | 085bde6889925b486291ddf1450b6bb6c8562a8f (patch) | |
| tree | 02f7a49b4378dc2387b825bfc19825405f4502ca /lib/std/math/complex | |
| parent | 4e2570baafb587c679ee0fc5e113ddeb36522a5d (diff) | |
| parent | 726a1149e05669e5cc05a16ce877bbb2be787e39 (diff) | |
| download | zig-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/complex')
| -rw-r--r-- | lib/std/math/complex/abs.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/acos.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/acosh.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/arg.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/asin.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/asinh.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/atan.zig | 4 | ||||
| -rw-r--r-- | lib/std/math/complex/atanh.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/conj.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/cos.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/cosh.zig | 4 | ||||
| -rw-r--r-- | lib/std/math/complex/exp.zig | 4 | ||||
| -rw-r--r-- | lib/std/math/complex/log.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/pow.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/proj.zig | 4 | ||||
| -rw-r--r-- | lib/std/math/complex/sin.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/sinh.zig | 4 | ||||
| -rw-r--r-- | lib/std/math/complex/sqrt.zig | 4 | ||||
| -rw-r--r-- | lib/std/math/complex/tan.zig | 2 | ||||
| -rw-r--r-- | lib/std/math/complex/tanh.zig | 4 |
20 files changed, 26 insertions, 28 deletions
diff --git a/lib/std/math/complex/abs.zig b/lib/std/math/complex/abs.zig index 97999ee775..ab85f2c36c 100644 --- a/lib/std/math/complex/abs.zig +++ b/lib/std/math/complex/abs.zig @@ -11,7 +11,7 @@ pub fn abs(z: anytype) @TypeOf(z.re, z.im) { const epsilon = 0.0001; -test "complex.cabs" { +test abs { const a = Complex(f32).init(5, 3); const c = abs(a); try testing.expect(math.approxEqAbs(f32, c, 5.83095, epsilon)); diff --git a/lib/std/math/complex/acos.zig b/lib/std/math/complex/acos.zig index e7f0f1f021..9cbfaffe4b 100644 --- a/lib/std/math/complex/acos.zig +++ b/lib/std/math/complex/acos.zig @@ -13,7 +13,7 @@ pub fn acos(z: anytype) Complex(@TypeOf(z.re, z.im)) { const epsilon = 0.0001; -test "complex.cacos" { +test acos { const a = Complex(f32).init(5, 3); const c = acos(a); diff --git a/lib/std/math/complex/acosh.zig b/lib/std/math/complex/acosh.zig index 4eab21914b..dba8b03794 100644 --- a/lib/std/math/complex/acosh.zig +++ b/lib/std/math/complex/acosh.zig @@ -13,7 +13,7 @@ pub fn acosh(z: anytype) Complex(@TypeOf(z.re, z.im)) { const epsilon = 0.0001; -test "complex.cacosh" { +test acosh { const a = Complex(f32).init(5, 3); const c = acosh(a); diff --git a/lib/std/math/complex/arg.zig b/lib/std/math/complex/arg.zig index bf5e0eff42..ac69276d96 100644 --- a/lib/std/math/complex/arg.zig +++ b/lib/std/math/complex/arg.zig @@ -11,7 +11,7 @@ pub fn arg(z: anytype) @TypeOf(z.re, z.im) { const epsilon = 0.0001; -test "complex.carg" { +test arg { const a = Complex(f32).init(5, 3); const c = arg(a); try testing.expect(math.approxEqAbs(f32, c, 0.540420, epsilon)); diff --git a/lib/std/math/complex/asin.zig b/lib/std/math/complex/asin.zig index aad337c6e2..deacfa26ea 100644 --- a/lib/std/math/complex/asin.zig +++ b/lib/std/math/complex/asin.zig @@ -19,7 +19,7 @@ pub fn asin(z: anytype) Complex(@TypeOf(z.re, z.im)) { const epsilon = 0.0001; -test "complex.casin" { +test asin { const a = Complex(f32).init(5, 3); const c = asin(a); diff --git a/lib/std/math/complex/asinh.zig b/lib/std/math/complex/asinh.zig index 67daabcf00..2dcfc9c2ac 100644 --- a/lib/std/math/complex/asinh.zig +++ b/lib/std/math/complex/asinh.zig @@ -14,7 +14,7 @@ pub fn asinh(z: anytype) Complex(@TypeOf(z.re, z.im)) { const epsilon = 0.0001; -test "complex.casinh" { +test asinh { const a = Complex(f32).init(5, 3); const c = asinh(a); diff --git a/lib/std/math/complex/atan.zig b/lib/std/math/complex/atan.zig index 5af14fb629..33109178f8 100644 --- a/lib/std/math/complex/atan.zig +++ b/lib/std/math/complex/atan.zig @@ -120,7 +120,7 @@ fn atan64(z: Complex(f64)) Complex(f64) { const epsilon = 0.0001; -test "complex.catan32" { +test atan32 { const a = Complex(f32).init(5, 3); const c = atan(a); @@ -128,7 +128,7 @@ test "complex.catan32" { try testing.expect(math.approxEqAbs(f32, c.im, 0.086569, epsilon)); } -test "complex.catan64" { +test atan64 { const a = Complex(f64).init(5, 3); const c = atan(a); diff --git a/lib/std/math/complex/atanh.zig b/lib/std/math/complex/atanh.zig index b9dcae6ac8..54d21fc433 100644 --- a/lib/std/math/complex/atanh.zig +++ b/lib/std/math/complex/atanh.zig @@ -14,7 +14,7 @@ pub fn atanh(z: anytype) Complex(@TypeOf(z.re, z.im)) { const epsilon = 0.0001; -test "complex.catanh" { +test atanh { const a = Complex(f32).init(5, 3); const c = atanh(a); diff --git a/lib/std/math/complex/conj.zig b/lib/std/math/complex/conj.zig index b470b5b442..b5a4d063d3 100644 --- a/lib/std/math/complex/conj.zig +++ b/lib/std/math/complex/conj.zig @@ -10,7 +10,7 @@ pub fn conj(z: anytype) Complex(@TypeOf(z.re, z.im)) { return Complex(T).init(z.re, -z.im); } -test "complex.conj" { +test conj { const a = Complex(f32).init(5, 3); const c = a.conjugate(); diff --git a/lib/std/math/complex/cos.zig b/lib/std/math/complex/cos.zig index 3b14ba47a3..389dd013e3 100644 --- a/lib/std/math/complex/cos.zig +++ b/lib/std/math/complex/cos.zig @@ -13,7 +13,7 @@ pub fn cos(z: anytype) Complex(@TypeOf(z.re, z.im)) { const epsilon = 0.0001; -test "complex.ccos" { +test cos { const a = Complex(f32).init(5, 3); const c = cos(a); diff --git a/lib/std/math/complex/cosh.zig b/lib/std/math/complex/cosh.zig index fe987a75e7..42f5b432ec 100644 --- a/lib/std/math/complex/cosh.zig +++ b/lib/std/math/complex/cosh.zig @@ -155,7 +155,7 @@ fn cosh64(z: Complex(f64)) Complex(f64) { const epsilon = 0.0001; -test "complex.ccosh32" { +test cosh32 { const a = Complex(f32).init(5, 3); const c = cosh(a); @@ -163,7 +163,7 @@ test "complex.ccosh32" { try testing.expect(math.approxEqAbs(f32, c.im, 10.471557, epsilon)); } -test "complex.ccosh64" { +test cosh64 { const a = Complex(f64).init(5, 3); const c = cosh(a); diff --git a/lib/std/math/complex/exp.zig b/lib/std/math/complex/exp.zig index 5b70e547ac..a3916300c4 100644 --- a/lib/std/math/complex/exp.zig +++ b/lib/std/math/complex/exp.zig @@ -119,7 +119,7 @@ fn exp64(z: Complex(f64)) Complex(f64) { } } -test "complex.cexp32" { +test exp32 { const tolerance_f32 = @sqrt(math.floatEps(f32)); { @@ -139,7 +139,7 @@ test "complex.cexp32" { } } -test "complex.cexp64" { +test exp64 { const tolerance_f64 = @sqrt(math.floatEps(f64)); { diff --git a/lib/std/math/complex/log.zig b/lib/std/math/complex/log.zig index c725888102..65859c2dce 100644 --- a/lib/std/math/complex/log.zig +++ b/lib/std/math/complex/log.zig @@ -15,7 +15,7 @@ pub fn log(z: anytype) Complex(@TypeOf(z.re, z.im)) { const epsilon = 0.0001; -test "complex.clog" { +test log { const a = Complex(f32).init(5, 3); const c = log(a); diff --git a/lib/std/math/complex/pow.zig b/lib/std/math/complex/pow.zig index af93c2f43c..874e4037dc 100644 --- a/lib/std/math/complex/pow.zig +++ b/lib/std/math/complex/pow.zig @@ -11,7 +11,7 @@ pub fn pow(z: anytype, s: anytype) Complex(@TypeOf(z.re, z.im, s.re, s.im)) { const epsilon = 0.0001; -test "complex.cpow" { +test pow { const a = Complex(f32).init(5, 3); const b = Complex(f32).init(2.3, -1.3); const c = pow(a, b); diff --git a/lib/std/math/complex/proj.zig b/lib/std/math/complex/proj.zig index 4c67c92fe9..b7d3d58b12 100644 --- a/lib/std/math/complex/proj.zig +++ b/lib/std/math/complex/proj.zig @@ -15,9 +15,7 @@ pub fn proj(z: anytype) Complex(@TypeOf(z.re, z.im)) { return Complex(T).init(z.re, z.im); } -const epsilon = 0.0001; - -test "complex.cproj" { +test proj { const a = Complex(f32).init(5, 3); const c = proj(a); diff --git a/lib/std/math/complex/sin.zig b/lib/std/math/complex/sin.zig index b966957456..3ca2419e43 100644 --- a/lib/std/math/complex/sin.zig +++ b/lib/std/math/complex/sin.zig @@ -14,7 +14,7 @@ pub fn sin(z: anytype) Complex(@TypeOf(z.re, z.im)) { const epsilon = 0.0001; -test "complex.csin" { +test sin { const a = Complex(f32).init(5, 3); const c = sin(a); diff --git a/lib/std/math/complex/sinh.zig b/lib/std/math/complex/sinh.zig index 5b3bf94a41..911587a9c5 100644 --- a/lib/std/math/complex/sinh.zig +++ b/lib/std/math/complex/sinh.zig @@ -154,7 +154,7 @@ fn sinh64(z: Complex(f64)) Complex(f64) { const epsilon = 0.0001; -test "complex.csinh32" { +test sinh32 { const a = Complex(f32).init(5, 3); const c = sinh(a); @@ -162,7 +162,7 @@ test "complex.csinh32" { try testing.expect(math.approxEqAbs(f32, c.im, 10.472508, epsilon)); } -test "complex.csinh64" { +test sinh64 { const a = Complex(f64).init(5, 3); const c = sinh(a); diff --git a/lib/std/math/complex/sqrt.zig b/lib/std/math/complex/sqrt.zig index 745940b955..0edf18fb23 100644 --- a/lib/std/math/complex/sqrt.zig +++ b/lib/std/math/complex/sqrt.zig @@ -129,7 +129,7 @@ fn sqrt64(z: Complex(f64)) Complex(f64) { const epsilon = 0.0001; -test "complex.csqrt32" { +test sqrt32 { const a = Complex(f32).init(5, 3); const c = sqrt(a); @@ -137,7 +137,7 @@ test "complex.csqrt32" { try testing.expect(math.approxEqAbs(f32, c.im, 0.644574, epsilon)); } -test "complex.csqrt64" { +test sqrt64 { const a = Complex(f64).init(5, 3); const c = sqrt(a); diff --git a/lib/std/math/complex/tan.zig b/lib/std/math/complex/tan.zig index 4e22ab9eb0..ad5b1b47b6 100644 --- a/lib/std/math/complex/tan.zig +++ b/lib/std/math/complex/tan.zig @@ -14,7 +14,7 @@ pub fn tan(z: anytype) Complex(@TypeOf(z.re, z.im)) { const epsilon = 0.0001; -test "complex.ctan" { +test tan { const a = Complex(f32).init(5, 3); const c = tan(a); diff --git a/lib/std/math/complex/tanh.zig b/lib/std/math/complex/tanh.zig index 02ba0bf91c..8a1d46eca7 100644 --- a/lib/std/math/complex/tanh.zig +++ b/lib/std/math/complex/tanh.zig @@ -103,7 +103,7 @@ fn tanh64(z: Complex(f64)) Complex(f64) { const epsilon = 0.0001; -test "complex.ctanh32" { +test tanh32 { const a = Complex(f32).init(5, 3); const c = tanh(a); @@ -111,7 +111,7 @@ test "complex.ctanh32" { try testing.expect(math.approxEqAbs(f32, c.im, -0.000025, epsilon)); } -test "complex.ctanh64" { +test tanh64 { const a = Complex(f64).init(5, 3); const c = tanh(a); |
