about summary refs log tree commit diff
path: root/library/core/tests/slice.rs
AgeCommit message (Expand)AuthorLines
2023-12-10remove redundant importssurechen-1/+0
2023-10-11Auto merge of #112818 - Benjamin-L:add-slice_split_once, r=cuviperbors-0/+20
2023-06-19Implement slice::split_once and slice::rsplit_onceBenjamin Lee-0/+20
2023-06-16Add more comprehensive tests for is_sorted and friends+merlan #flirora-0/+28
2023-03-27replace advance_by returning usize with Result<(), NonZeroUsize>The 8472-10/+11
2023-03-27Change advance(_back)_by to return `usize` instead of `Result<(), usize>`The 8472-10/+10
2023-01-14Remove various double spaces in source comments.André Vennberg-1/+1
2023-01-04Update rand in the stdlib tests, and remove the getrandom feature from itThom Chiovoloni-5/+4
2022-11-20Add get_many_mut methods to sliceMarvin Löbel-0/+60
2022-10-07make const_err a hard errorRalf Jung-1/+0
2022-08-03actually call assert_send_and_syncRalf Jung-1/+2
2022-08-01Add back Send and Sync impls on ChunksMut iteratorsBen Kimock-0/+21
2022-07-03Fix slice::ChunksMut aliasingBen Kimock-0/+44
2022-05-18Stage-step cfgsMark Rousskov-2/+0
2022-04-17Add slice::remainderkadmin-0/+12
2022-04-08add `<[[T; N]]>::flatten`, `<[[T; N]]>::flatten_mut`, and `Vec::<[T; N]>::int...Cyborus04-0/+16
2022-03-26add #[must_use] to functions of slice and its iterators.Jendrik-4/+4
2022-03-03fix a warning when building core tests with cfg(miri)Ralf Jung-0/+2
2022-02-27add `slice::{from_ptr_range, from_mut_ptr_range}`Ibraheem Ahmed-0/+22
2022-02-01Auto merge of #86988 - thomcc:chunky-splitz-says-no-checking, r=the8472bors-0/+102
2022-01-31Improve test coverage of {Chunks,RChunks,RChunksMut}::{next,next_back}Thom Chiovoloni-0/+102
2021-12-10Add rsplit_array variants to slices and arraysJethro Beekman-0/+33
2021-12-01disable tests in Miri that take too longRalf Jung-0/+2
2021-12-01Rollup merge of #88502 - ibraheemdev:slice-take, r=dtolnayMatthias Krüger-0/+109
2021-11-19Fix Iterator::advance_by contract inconsistencyThe8472-0/+2
2021-11-12add slice take methodsIbraheem Ahmed-0/+109
2021-10-24Rollup merge of #90162 - WaffleLapkin:const_array_slice_from_ref_mut, r=oli-obkMatthias Krüger-0/+8
2021-10-23Add tests for `const_slice_from_ref` and `const_array_from_ref`Maybe Waffle-0/+8
2021-10-22Implement split_array and split_array_mutJethro Beekman-0/+33
2021-10-11add slice::swap testsIbraheem Ahmed-0/+39
2021-08-31Move to the top of fileKatherine Philip-2/+1
2021-08-30Add test case for using `slice::fill` with MaybeUninitKatherine Philip-0/+9
2021-08-09add `windows` count testlcnr-0/+8
2021-07-22Add testsTim Vermeulen-0/+42
2021-04-13Implement indexing slices with pairs of ops::Bound<usize>AnthonyMikh-0/+43
2021-02-27Fix `binary_search_by()` overflow issue in ZST caseFolyd-0/+13
2021-01-30Simplify binary search logic to full branch code to let CPU guessing branch m...Folyd-1/+1
2021-01-30Improve slice.binary_search_by()'s best-case performance to O(1)Folyd-4/+4
2020-10-20Check for exhaustion in SliceIndex for RangeInclusiveJosh Stone-0/+30
2020-10-12Stabilize slice_select_nth_unstableJames Gill-16/+16
2020-09-25review: fix nits and move panic safety tests to the correct placeAlexis Bourget-2/+1
2020-09-21Move vec-slice-drop testAlexis Bourget-0/+29
2020-09-16Add array window fnkadmin-0/+49
2020-09-04Add tests for array_chunks_mutJosh Stone-0/+93
2020-09-04Auto merge of #75207 - dylni:add-slice-check-range, r=KodrAusbors-2/+2
2020-08-19enable align_to tests in MiriRalf Jung-2/+0
2020-08-16Replace ad hoc implementations with `slice::check_range`dylni-2/+2
2020-08-03Rollup merge of #74974 - RalfJung:miri-tests, r=Mark-SimulacrumYuki Okushi-3/+3
2020-07-31expand commentsRalf Jung-1/+1
2020-07-31also reduce some libcore test iteration countsRalf Jung-2/+2