aboutsummaryrefslogtreecommitdiff
path: root/std/math/complex/tan.zig
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2018-04-24 21:14:12 -0400
committerAndrew Kelley <superjoe30@gmail.com>2018-04-24 21:14:12 -0400
commit1d998d5dce73d8d500dee5e41a3dca92a7f9b03e (patch)
tree4fac84336118ea7cdc221f76be5c7ff3797d0cd9 /std/math/complex/tan.zig
parentd5e99cc05ea05d701adffce55defc512d75e10d1 (diff)
downloadzig-1d998d5dce73d8d500dee5e41a3dca92a7f9b03e.tar.gz
zig-1d998d5dce73d8d500dee5e41a3dca92a7f9b03e.zip
clean up complex math tests
Diffstat (limited to 'std/math/complex/tan.zig')
-rw-r--r--std/math/complex/tan.zig7
1 files changed, 2 insertions, 5 deletions
diff --git a/std/math/complex/tan.zig b/std/math/complex/tan.zig
index cb43ff36dc..4ea5182fa7 100644
--- a/std/math/complex/tan.zig
+++ b/std/math/complex/tan.zig
@@ -17,9 +17,6 @@ test "complex.ctan" {
const a = Complex(f32).new(5, 3);
const c = tan(a);
- const re = c.re;
- const im = c.im;
-
- debug.assert(math.approxEq(f32, re, -0.002708233, epsilon));
- debug.assert(math.approxEq(f32, im, 1.004165, epsilon));
+ debug.assert(math.approxEq(f32, c.re, -0.002708233, epsilon));
+ debug.assert(math.approxEq(f32, c.im, 1.004165, epsilon));
}