Skip to content

Commit 234bb53

Browse files
Test MultiProduct specializations
1 parent 4bafc14 commit 234bb53

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/specializations.rs

+9
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,15 @@ quickcheck! {
114114
TestResult::passed()
115115
}
116116

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+
117126
fn coalesce(v: Vec<u8>) -> () {
118127
test_specializations(&v.iter().coalesce(|x, y| if x == y { Ok(x) } else { Err((x, y)) }))
119128
}

0 commit comments

Comments
 (0)