Skip to content

Commit 1f6cfe5

Browse files
add test
1 parent 66a307b commit 1f6cfe5

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
@@ -2571,6 +2571,14 @@ mod test {
25712571
test(it, &[0, 1, 2, 3, 4, 5]);
25722572
}
25732573

2574+
#[test]
2575+
fn flatten() {
2576+
let mut items = [convert([0, 1, 2]), convert([3, 4, 5])];
2577+
let it = convert_mut(&mut items).flatten();
2578+
2579+
test(it, &[0, 1, 2, 3, 4, 5]);
2580+
}
2581+
25742582
#[test]
25752583
fn nth() {
25762584
let items = [0, 1];

0 commit comments

Comments
 (0)