rust/library/alloc/tests
bors 40db258731 Auto merge of #87974 - steffahn:slice_split_size_hints, r=dtolnay
Test and fix `size_hint` for slice’s [r]split* iterators

Adds extensive test (of `size_hint`) for all the _[r]split*_ iterators.
Fixes `size_hint` upper bound for _split_inclusive*_ iterators which was one higher than necessary for non-empty slices.
Fixes `size_hint` lower bound for _[r]splitn*_ iterators when _n == 0_, which was one too high.

**Lower bound being one too high was a logic error, violating the correctness condition of `size_hint`.**

_Edit:_ I’ve opened an issue for that bug, so this PR fixes #87978
2021-08-15 04:48:42 +00:00
..
arc.rs Add Weak may_dangle tests 2021-05-20 19:42:29 -07:00
binary_heap.rs Fix may not to appropriate might not or must not 2021-07-29 01:15:20 -04:00
borrow.rs
boxed.rs
btree_set_hash.rs
const_fns.rs Moved ui test 2021-08-13 09:28:51 +00:00
cow_str.rs
fmt.rs Auto merge of #78618 - workingjubilee:ieee754-fmt, r=m-ou-se 2021-03-27 10:40:16 +00:00
heap.rs Rename AllocRef to Allocator and (de)alloc to (de)allocate 2020-12-04 14:47:15 +01:00
lib.rs allow incomplete features for now 2021-08-13 09:28:52 +00:00
linked_list.rs
rc.rs Add Weak may_dangle tests 2021-05-20 19:42:29 -07:00
slice.rs Improve wording, correct -> tight. 2021-08-13 15:27:30 +02:00
str.rs Add test for the fix 2021-07-11 17:47:57 +02:00
string.rs Use assert_matches! instead of if let {} else 2021-08-07 14:48:27 +01:00
vec.rs Use assert_matches! instead of if let {} else 2021-08-07 14:48:27 +01:00
vec_deque.rs Use assert_matches! instead of if let {} else 2021-08-07 14:48:27 +01:00