Skip to content

Commit 3154cb7

Browse files
committed
Test specializations in one function (2) rename
1 parent 1f112a3 commit 3154cb7

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/specializations.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ where
2727
)
2828
}
2929

30-
fn check_specialized_count_last_nth_sizeh<IterItem, Iter>(
30+
fn test_specializations<IterItem, Iter>(
3131
it: &Iter,
3232
known_expected_size: Option<usize>,
3333
) where
@@ -69,12 +69,12 @@ fn put_back_test(test_vec: Vec<i32>, known_expected_size: Option<usize>) {
6969
{
7070
// Lexical lifetimes support
7171
let pb = itertools::put_back(test_vec.iter());
72-
check_specialized_count_last_nth_sizeh(&pb, known_expected_size);
72+
test_specializations(&pb, known_expected_size);
7373
}
7474

7575
let mut pb = itertools::put_back(test_vec.into_iter());
7676
pb.put_back(1);
77-
check_specialized_count_last_nth_sizeh(&pb, known_expected_size.map(|x| x + 1));
77+
test_specializations(&pb, known_expected_size.map(|x| x + 1));
7878
}
7979

8080
#[test]
@@ -92,11 +92,11 @@ fn merge_join_by_test(i1: Vec<usize>, i2: Vec<usize>, known_expected_size: Optio
9292
let i1 = i1.into_iter();
9393
let i2 = i2.into_iter();
9494
let mjb = i1.clone().merge_join_by(i2.clone(), std::cmp::Ord::cmp);
95-
check_specialized_count_last_nth_sizeh(&mjb, known_expected_size);
95+
test_specializations(&mjb, known_expected_size);
9696

9797
// And the other way around
9898
let mjb = i2.merge_join_by(i1, std::cmp::Ord::cmp);
99-
check_specialized_count_last_nth_sizeh(&mjb, known_expected_size);
99+
test_specializations(&mjb, known_expected_size);
100100
}
101101

102102
#[test]

0 commit comments

Comments
 (0)