From dc213233b6f7c14326ef4834151a417d8f9d362d Mon Sep 17 00:00:00 2001 From: Ronno Das Date: Tue, 10 Sep 2024 16:30:18 +0200 Subject: [PATCH] added specialization tests --- tests/specializations.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/specializations.rs b/tests/specializations.rs index 3e4831024..e6694c8e7 100644 --- a/tests/specializations.rs +++ b/tests/specializations.rs @@ -273,6 +273,16 @@ quickcheck! { test_specializations(&v.into_iter().intersperse_with(|| 0)); } + fn array_combinations(v: Vec) -> TestResult { + if v.len() > 10 { + return TestResult::discard(); + } + test_specializations(&v.iter().array_combinations::<1>()); + test_specializations(&v.iter().array_combinations::<2>()); + test_specializations(&v.iter().array_combinations::<3>()); + TestResult::passed() + } + fn combinations(a: Vec, n: u8) -> TestResult { if n > 3 || a.len() > 8 { return TestResult::discard();