Skip to content

Commit

Permalink
Test powerset specializations
Browse files Browse the repository at this point in the history
Truncated to be fast enough.
  • Loading branch information
Philippe-Cholet authored and jswrenn committed Sep 28, 2023
1 parent 1954eeb commit d6d2a14
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/specializations.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ quickcheck! {
fn intersperse(v: Vec<u8>) -> () {
test_specializations(&v.into_iter().intersperse(0));
}

fn powerset(a: Vec<u8>) -> () {
let mut a = a;
a.truncate(6);
test_specializations(&a.iter().powerset())
}
}

quickcheck! {
Expand Down

0 comments on commit d6d2a14

Please sign in to comment.