27
27
)
28
28
}
29
29
30
- fn check_specialized_count_last_nth_sizeh < IterItem , Iter > (
30
+ fn test_specializations < IterItem , Iter > (
31
31
it : & Iter ,
32
32
known_expected_size : Option < usize > ,
33
33
) where
@@ -69,12 +69,12 @@ fn put_back_test(test_vec: Vec<i32>, known_expected_size: Option<usize>) {
69
69
{
70
70
// Lexical lifetimes support
71
71
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) ;
73
73
}
74
74
75
75
let mut pb = itertools:: put_back ( test_vec. into_iter ( ) ) ;
76
76
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 ) ) ;
78
78
}
79
79
80
80
#[ test]
@@ -92,11 +92,11 @@ fn merge_join_by_test(i1: Vec<usize>, i2: Vec<usize>, known_expected_size: Optio
92
92
let i1 = i1. into_iter ( ) ;
93
93
let i2 = i2. into_iter ( ) ;
94
94
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) ;
96
96
97
97
// And the other way around
98
98
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) ;
100
100
}
101
101
102
102
#[ test]
0 commit comments