aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/complex.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/complex.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/complex.zig')
-rw-r--r--lib/std/math/complex.zig18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/std/math/complex.zig b/lib/std/math/complex.zig
index 8b9e8befab..8398d0a69a 100644
--- a/lib/std/math/complex.zig
+++ b/lib/std/math/complex.zig
@@ -120,7 +120,7 @@ pub fn Complex(comptime T: type) type {
const epsilon = 0.0001;
-test "complex.add" {
+test "add" {
const a = Complex(f32).init(5, 3);
const b = Complex(f32).init(2, 7);
const c = a.add(b);
@@ -128,7 +128,7 @@ test "complex.add" {
try testing.expect(c.re == 7 and c.im == 10);
}
-test "complex.sub" {
+test "sub" {
const a = Complex(f32).init(5, 3);
const b = Complex(f32).init(2, 7);
const c = a.sub(b);
@@ -136,7 +136,7 @@ test "complex.sub" {
try testing.expect(c.re == 3 and c.im == -4);
}
-test "complex.mul" {
+test "mul" {
const a = Complex(f32).init(5, 3);
const b = Complex(f32).init(2, 7);
const c = a.mul(b);
@@ -144,7 +144,7 @@ test "complex.mul" {
try testing.expect(c.re == -11 and c.im == 41);
}
-test "complex.div" {
+test "div" {
const a = Complex(f32).init(5, 3);
const b = Complex(f32).init(2, 7);
const c = a.div(b);
@@ -153,28 +153,28 @@ test "complex.div" {
math.approxEqAbs(f32, c.im, @as(f32, -29) / 53, epsilon));
}
-test "complex.conjugate" {
+test "conjugate" {
const a = Complex(f32).init(5, 3);
const c = a.conjugate();
try testing.expect(c.re == 5 and c.im == -3);
}
-test "complex.neg" {
+test "neg" {
const a = Complex(f32).init(5, 3);
const c = a.neg();
try testing.expect(c.re == -5 and c.im == -3);
}
-test "complex.mulbyi" {
+test "mulbyi" {
const a = Complex(f32).init(5, 3);
const c = a.mulbyi();
try testing.expect(c.re == -3 and c.im == 5);
}
-test "complex.reciprocal" {
+test "reciprocal" {
const a = Complex(f32).init(5, 3);
const c = a.reciprocal();
@@ -182,7 +182,7 @@ test "complex.reciprocal" {
math.approxEqAbs(f32, c.im, @as(f32, -3) / 34, epsilon));
}
-test "complex.magnitude" {
+test "magnitude" {
const a = Complex(f32).init(5, 3);
const c = a.magnitude();