aboutsummaryrefslogtreecommitdiff
path: root/lib/std/math/complex/tan.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-08 17:29:44 -0400
committerGitHub <noreply@github.com>2021-05-08 17:29:44 -0400
commit67154d233ef68d9fd63e673e63e7d66f149060a5 (patch)
tree341521e1c7cd9d3ea77726e27661b08d46b9a8dd /lib/std/math/complex/tan.zig
parentfed1c9c3ece7b79ce7fccc6af510f1dab98401a9 (diff)
parent7437c47d55da4c73aba26327d1a140aaf6591d4a (diff)
downloadzig-67154d233ef68d9fd63e673e63e7d66f149060a5.tar.gz
zig-67154d233ef68d9fd63e673e63e7d66f149060a5.zip
Merge pull request #8686 from Vexu/try
Allow tests to fail
Diffstat (limited to 'lib/std/math/complex/tan.zig')
-rw-r--r--lib/std/math/complex/tan.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/math/complex/tan.zig b/lib/std/math/complex/tan.zig
index 04d900bd99..ca9d4ce7e9 100644
--- a/lib/std/math/complex/tan.zig
+++ b/lib/std/math/complex/tan.zig
@@ -23,6 +23,6 @@ test "complex.ctan" {
const a = Complex(f32).new(5, 3);
const c = tan(a);
- testing.expect(math.approxEqAbs(f32, c.re, -0.002708233, epsilon));
- testing.expect(math.approxEqAbs(f32, c.im, 1.004165, epsilon));
+ try testing.expect(math.approxEqAbs(f32, c.re, -0.002708233, epsilon));
+ try testing.expect(math.approxEqAbs(f32, c.im, 1.004165, epsilon));
}