Skip to content

Commit 9ec6033

Browse files
ronnodasphimuemue
authored andcommitted
added specialization tests
1 parent 1bb419b commit 9ec6033

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/specializations.rs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -273,6 +273,16 @@ quickcheck! {
273273
test_specializations(&v.into_iter().intersperse_with(|| 0));
274274
}
275275

276+
fn array_combinations(v: Vec<u8>) -> TestResult {
277+
if v.len() > 10 {
278+
return TestResult::discard();
279+
}
280+
test_specializations(&v.iter().array_combinations::<1>());
281+
test_specializations(&v.iter().array_combinations::<2>());
282+
test_specializations(&v.iter().array_combinations::<3>());
283+
TestResult::passed()
284+
}
285+
276286
fn combinations(a: Vec<u8>, n: u8) -> TestResult {
277287
if n > 3 || a.len() > 8 {
278288
return TestResult::discard();

0 commit comments

Comments
 (0)