Skip to content

Commit 3a64d5c

Browse files
LorenzSchuelercuviper
authored andcommitted
add test
1 parent c5a123b commit 3a64d5c

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/lib.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2566,6 +2566,14 @@ mod test {
25662566
test(it, &[0, 1, 2, 3, 4, 5]);
25672567
}
25682568

2569+
#[test]
2570+
fn flatten() {
2571+
let mut items = [convert([0, 1, 2]), convert([3, 4, 5])];
2572+
let it = convert_mut(&mut items).flatten();
2573+
2574+
test(it, &[0, 1, 2, 3, 4, 5]);
2575+
}
2576+
25692577
#[test]
25702578
fn nth() {
25712579
let items = [0, 1];

0 commit comments

Comments
 (0)