From 34a9ed2721c3fa1cf5792675e900479be7827524 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sat, 25 Mar 2023 16:54:00 +0900 Subject: [PATCH] atan and atanh -0.0 sign test case --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 1860d28..572d6f4 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -2166,6 +2166,8 @@ pub(crate) mod test { -f64::consts::PI / 2.0 <= c.atan().re && c.atan().re <= f64::consts::PI / 2.0 ); } + assert!(_0_0i.atan().re.is_sign_positive()); + assert!((-_0_0i).atan().re.is_sign_negative()); } #[test] @@ -2272,6 +2274,8 @@ pub(crate) mod test { -f64::consts::PI / 2.0 <= c.atanh().im && c.atanh().im <= f64::consts::PI / 2.0 ); } + assert!(_0_0i.atanh().re.is_sign_positive()); + assert!((-_0_0i).atanh().re.is_sign_negative()); } #[test]