summary refs log tree commit diff stats
path: root/tests/stdlib/tstrutils.nim
Commit message (Collapse)AuthorAgeFilesLines
* Fix `find` routines' api to default to `last=-1` (#19761)Zoom2022-06-071-17/+21
| | | | | | | | | | | | This changes the default for the `last` parameter of various `find` routines from `0` to `-1`. Previous default prevents limiting the search to the first character. This is a logic error, as full text search was performed for 2 *valid* values of `last`: `0` and `last.high()`. Adds an overload for `initSkipTable` which returns a newly initialized table. This encapsulates every single usage of a `var`-acting original func in this module. Co-authored-by: flywind <xzsflywind@gmail.com>
* fix parseEnum cannot parse enum with const fields (#19466)flywind2022-02-041-0/+11
| | | fix #19463
* Fix nimIdentNormalize, fixes #19067 (#19068)Tomasz Kramkowski2021-10-291-0/+7
| | | | | | | * Make nimIdentNormalize return "" when passed ""; fixes #19067 Fixes #19067 * Add tests for nimIdentNormalize
* deprecate strutils.delete and add an overload with saner semantics ↵Timothee Cour2021-07-181-1/+25
| | | | consistent with sequtils.delete; follows #18487 (#18510)
* add string-string tests for find and rfind (#18137)n5m2021-06-021-3/+98
| | | | | | | * add string-string tests for find and rfind * remove duplicate test cases * remove more redundant test cases
* improve fast returns of find and rfind (#18127)n5m2021-05-311-0/+28
|
* std/hashes: hash(ref|ptr|pointer) + other improvements (#17731)Timothee Cour2021-04-161-5/+1
|
* use doAssert in tests (#16486)flywind2020-12-281-132/+132
|
* strip minor improvement (#16444)flywind2020-12-231-0/+13
| | | | | | | * strip minor improvement * add more tests * Update tests/stdlib/tstrutils.nim Co-authored-by: Timothee Cour <timothee.cour2@gmail.com>
* improve tstrutils: test c, cpp, js, vm; cleanups (#16357)Timothee Cour2020-12-151-0/+689
* renamed: tests/stdlib/tstrutil.nim -> tests/stdlib/tstrutils.nim * improve test * enable tstrutils for js, vm