We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
MultiProduct
1 parent 4bafc14 commit 234bb53Copy full SHA for 234bb53
tests/specializations.rs
@@ -114,6 +114,15 @@ quickcheck! {
114
TestResult::passed()
115
}
116
117
+ #[ignore] // It currently fails because `MultiProduct` is not fused.
118
+ fn multi_cartesian_product(a: Vec<u8>, b: Vec<u8>, c: Vec<u8>) -> TestResult {
119
+ if a.len() * b.len() * c.len() > 100 {
120
+ return TestResult::discard();
121
+ }
122
+ test_specializations(&vec![a, b, c].into_iter().multi_cartesian_product());
123
+ TestResult::passed()
124
125
+
126
fn coalesce(v: Vec<u8>) -> () {
127
test_specializations(&v.iter().coalesce(|x, y| if x == y { Ok(x) } else { Err((x, y)) }))
128
0 commit comments