Skip to content

Commit 882581f

Browse files
Philippe-Choletjswrenn
authored andcommitted
TupleWindows: exact size test
1 parent 43cfe24 commit 882581f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/quick.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1145,6 +1145,14 @@ quickcheck! {
11451145
itertools::equal(x, y)
11461146
}
11471147

1148+
fn tuple_windows_exact_size_1(a: Vec<u8>) -> bool {
1149+
exact_size(a.iter().tuple_windows::<(_,)>())
1150+
}
1151+
1152+
fn tuple_windows_exact_size_4(a: Vec<u8>) -> bool {
1153+
exact_size(a.iter().tuple_windows::<(_, _, _, _)>())
1154+
}
1155+
11481156
fn equal_tuples_1(a: Vec<u8>) -> bool {
11491157
let x = a.chunks(1).map(|s| (&s[0], ));
11501158
let y = a.iter().tuples::<(_,)>();

0 commit comments

Comments
 (0)