Skip to content

Commit

Permalink
Test for powc(-1)
Browse files Browse the repository at this point in the history
  • Loading branch information
domna committed May 24, 2023
1 parent 8235bd3 commit 03a3208
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1904,6 +1904,8 @@ pub(crate) mod test {
assert!(z.powc(Complex64::new(10., INFINITY)).is_nan());
assert!(z.powc(Complex64::new(INFINITY, INFINITY)).is_nan());
assert!(close(z.powc(Complex64::new(INFINITY, 0.)), z));
assert!(z.powc(Complex64::new(-1., 0.)).re.is_infinite());
assert!(z.powc(Complex64::new(-1., 0.)).im.is_nan());
}

#[test]
Expand Down

0 comments on commit 03a3208

Please sign in to comment.