Skip to content

Commit 9105061

Browse files
committed
Canonicalize special cases of map (4) test specializations
1 parent 8ef597b commit 9105061

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

tests/specializations.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,3 +86,15 @@ quickcheck! {
8686
test_specializations(&i1.into_iter().merge_join_by(i2.into_iter(), std::cmp::Ord::cmp));
8787
}
8888
}
89+
90+
quickcheck! {
91+
fn map_into(v: Vec<u8>) -> () {
92+
test_specializations(&v.into_iter().map_into::<u32>());
93+
}
94+
}
95+
96+
quickcheck! {
97+
fn map_ok(v: Vec<Result<u8, char>>) -> () {
98+
test_specializations(&v.into_iter().map_ok(|u| u.checked_add(1)));
99+
}
100+
}

0 commit comments

Comments
 (0)