summary refs log tree commit diff
path: root/src/libcoretest/str.rs
AgeCommit message (Collapse)AuthorLines
2014-09-02core: Make TwoWaySearcher reset its prefix memory when shifting by bytesetnham-0/+6
Closes #16878.
2014-08-20Fix TwoWaySearcher to work when used with periodic needles.nham-0/+20
There is a check in TwoWaySearcher::new to determine whether the needle is periodic. This is needed because during searching when a match fails, we cannot advance the position by the entire length of the needle when it is periodic, but can only advance by the length of the period. The reason "bananas".contains("nana") (and similar searches) were returning false was because the periodicity check was wrong. Closes #16589
2014-08-19Add a test for the fix of issue 16589nham-0/+14