We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70564df commit 0a04880Copy full SHA for 0a04880
src/lib.rs
@@ -1609,6 +1609,15 @@ mod test {
1609
use super::*;
1610
use num_traits::{Float, Pow};
1611
1612
+ #[test]
1613
+ fn test_cis() {
1614
+ assert!(close(Complex::cis(0.0 * f64::consts::PI), _1_0i));
1615
+ assert!(close(Complex::cis(0.5 * f64::consts::PI), _0_1i));
1616
+ assert!(close(Complex::cis(1.0 * f64::consts::PI), -_1_0i));
1617
+ assert!(close(Complex::cis(1.5 * f64::consts::PI), -_0_1i));
1618
+ assert!(close(Complex::cis(2.0 * f64::consts::PI), _1_0i));
1619
+ }
1620
+
1621
#[test]
1622
#[cfg_attr(target_arch = "x86", ignore)]
1623
// FIXME #7158: (maybe?) currently failing on x86.
0 commit comments