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 559536b commit 64e48dfCopy full SHA for 64e48df
src/lib.rs
@@ -1935,4 +1935,18 @@ mod test {
1935
test("1i - 2i");
1936
test("+ 1 - 3.0i");
1937
}
1938
+
1939
+ #[test]
1940
+ fn test_sum() {
1941
+ let v = vec![_0_1i, _4_2i, _1_0i, _1_1i];
1942
+ let _: Complex64 = v.iter().sum();
1943
+ let _: Complex64 = v.into_iter().sum();
1944
+ }
1945
1946
1947
+ fn test_prod() {
1948
1949
+ let _: Complex64 = v.iter().product();
1950
+ let _: Complex64 = v.into_iter().product();
1951
1952
0 commit comments