about summary refs log tree commit diff
path: root/src/liballoc/tests/str.rs
AgeCommit message (Collapse)AuthorLines
2020-07-27mv std libs to library/mark-1899/+0
2020-06-10Migrate to numeric associated constsLzu Tao-2/+2
2020-02-09Don't return empty slice on last iteration with matched terminator. Test ↵Pyry Kontio-7/+32
reverse iteration.
2020-02-09Implement split_inclusive for slice and str, an splitting iterator that ↵Pyry Kontio-0/+18
includes the matched part in the iterated substrings as a terminator.
2019-12-22Format the worldMark Rousskov-179/+175
2019-12-07liballoc: ignore tests in Miri instead of removing them entirelyRalf Jung-8/+7
2019-10-16Upgrade Emscripten targets to use upstream LLVM backendThomas Lively-1/+1
- Compatible with Emscripten 1.38.46-upstream or later upstream. - Refactors the Emscripten target spec to share code with other wasm targets. - Replaces the old incorrect wasm32 C call ABI with the correct one, preserving the old one as wasm32_bindgen_compat for wasm-bindgen compatibility. - Updates the varargs ABI used by Emscripten and deletes the old one. - Removes the obsolete wasm32-experimental-emscripten target. - Uses EMCC_CFLAGS on CI to avoid the timeout problems with #63649.
2019-10-05Revert "Auto merge of #63649 - tlively:emscripten-upstream-upgrade, ↵Tyler Mandry-1/+1
r=alexcrichton" This reverts commit 7870050796e5904a0fc85ecbe6fa6dde1cfe0c91, reversing changes made to 2e7244807a7878f6eca3eb7d97ae9b413aa49014.
2019-10-04Fix ABI, run and fix more tests, re-enable CI for PRsThomas Lively-1/+1
2019-08-08Use associated_type_bounds where applicable - closes #61738Ilija Tovilo-4/+6
2019-07-29comments from @lzutaoMaximilian Roos-1/+1
2019-07-29impl Debug for CharsMaximilian Roos-0/+10
2019-03-16Rollup merge of #59206 - sntdevco:master, r=dtolnaykennytm-1/+1
Improved test output
2019-03-15Improved test output for liballoc/strsntdevco-1/+1
2019-03-10we can now skip should_panic tests with the libtest harnessRalf Jung-11/+0
2019-02-13review failures in binary_heap, str, vec_dequeRalf Jung-21/+18
2019-02-12New return types for str::escape_* that impl Display and Iterator<char>Simon Sapin-30/+31
As FCP’ed in the tracking issue: https://github.com/rust-lang/rust/issues/27791#issuecomment-376864727
2019-02-09Rollup merge of #58275 - RalfJung:miri-test-libcore, r=Mark-SimulacrumMazdak Farrokhzad-0/+21
libcore, liballoc: disable tests in Miri I am going to run the libcore and liballoc unit test suites in Miri. Not all tests pass. This PR disables a whole bunch of tests when running in Miri, to get us to a baseline from which I can investigate failures. Cc @SimonSapin @alexcrichton
2019-02-07disable tests in MiriRalf Jung-0/+21
2019-02-03liballoc: revert nested imports style changes.Mazdak Farrokhzad-9/+5
2019-02-02liballoc: elide &'static.Mazdak Farrokhzad-2/+2
2019-02-02liballoc: adjust abolute imports + more import fixes.Mazdak Farrokhzad-2/+2
2019-02-02liballoc: refactor & fix some imports.Mazdak Farrokhzad-6/+9
2018-12-25Remove licensesMark Rousskov-10/+0
2018-12-12Bump to 1.33.0Alex Crichton-4/+4
* Update bootstrap compiler * Update version to 1.33.0 * Remove some `#[cfg(stage0)]` annotations Actually updating the version number is blocked on updating Cargo
2018-12-07Various minor/cosmetic improvements to codeAlexander Regueiro-1/+1
2018-12-04Replace usages of `..i + 1` ranges with `..=i`.Corey Farwell-1/+1
2018-08-19Remove old testsvarkor-50/+0
2018-08-02Add trim_start, trim_end, trim_start_matches and trim_end_matchesvarkor-0/+58
2018-06-26removed slice_uncheked from src/liballoc/tests/str.rsnewpavlov-4/+4
2018-06-03impl Default for &mut strkennytm-0/+1
2018-06-01add more join testsEmerentius-0/+13
old tests cover the new fast path of str joining already this adds tests for joining into Strings with long separators (>4 byte) and for joining into Vec<T>, T: Clone + !Copy. Vec<T: Copy> will be specialised when specialisation type inference bugs are fixed.
2018-05-21Avoid counting characters and add explanatory comment to testvarkor-0/+6
2018-05-21Only escape extended grapheme characters in the first positionvarkor-1/+1
2018-05-21Make {char, str}::escape_debug and impl Debug for {char, str} consistentvarkor-0/+1
2018-05-10Skip a memory-hungry test that OOMsAlex Crichton-0/+1
Attempting to fix https://travis-ci.org/rust-lang/rust/jobs/377407894 via some selective ignoring tests
2018-04-30revise test gen macro for strMichael Lamparski-144/+81
2018-04-30decrease false negatives for str overflow testMichael Lamparski-1/+3
2018-04-30flesh out tests for SliceIndexMichael Lamparski-99/+378
m*n lines of implementation deserves m*n lines of tests
2018-04-30collect str SliceIndex tests into a modMichael Lamparski-137/+140
GitHub users: I think you can add ?w=1 to the url for a vastly cleaner whitespace-ignoring diff
2018-04-18fix my unit test that was horrendously wrongMichael Lamparski-3/+17
and add one for non-mut slicing since I touched that method too
2018-04-17smaller PR just to fix #50002Michael Lamparski-0/+16
2018-04-12Merge unstable Utf16Encoder into EncodeUtf16Simon Sapin-2/+1
2018-04-12Merge core::unicode::str into core::strSimon Sapin-1/+1
And the UnicodeStr trait into StrExt
2018-04-12Deprecate the std_unicode crateSimon Sapin-1/+1
2017-11-21fix some typosMartin Lindhe-3/+3
2017-11-03Remove unused AsciiExt imports and fix tests related to ascii methodsLukas Kalbertodt-1/+0
Many AsciiExt imports have become useless thanks to the inherent ascii methods added in the last commits. These were removed. In some places, I fully specified the ascii method being called to enforce usage of the AsciiExt trait. Note that some imports are not removed but tagged with a `#[cfg(stage0)]` attribute. This is necessary, because certain ascii methods are not yet available in stage0. All those imports will be removed later. Additionally, failing tests were fixed. The test suite should exit successfully now.
2017-09-22Add support for `..=` syntaxAlex Burka-8/+8
Add ..= to the parser Add ..= to libproc_macro Add ..= to ICH Highlight ..= in rustdoc Update impl Debug for RangeInclusive to ..= Replace `...` to `..=` in range docs Make the dotdoteq warning point to the ... Add warning for ... in expressions Updated more tests to the ..= syntax Updated even more tests to the ..= syntax Updated the inclusive_range entry in unstable book
2017-06-13Merge crate `collections` into `alloc`Murarth-0/+1573