diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2020-12-31 04:54:40 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 11:54:40 +0100 |
commit | 5fb56a3b2c83b62d72c72a9d56ef1333671bc2b6 (patch) | |
tree | e32cffb18e3180a81f8179130cc99800d6e505df /tests/js | |
parent | 5984f7a7dda5e6fb3119cd5705d5758e1b8f3fc7 (diff) | |
download | Nim-5fb56a3b2c83b62d72c72a9d56ef1333671bc2b6.tar.gz |
refactor cmpIgnoreStyle and cmpIgnoreCase (#16399)
* init * support strutils * more * better * Call len once per string/cstring * Change var to let * Compare ternary on first char * More appropriate param name * fix * better * one test * impl * more efficient * minor Co-authored-by: Clyybber <darkmine956@gmail.com>
Diffstat (limited to 'tests/js')
-rw-r--r-- | tests/js/tstdlib_various.nim | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/tests/js/tstdlib_various.nim b/tests/js/tstdlib_various.nim index d19f40c39..a1bb63d46 100644 --- a/tests/js/tstdlib_various.nim +++ b/tests/js/tstdlib_various.nim @@ -29,7 +29,7 @@ Hi Andreas! How do you feel, Rumpf? """ import - critbits, cstrutils, sets, strutils, tables, random, algorithm, ropes, + critbits, sets, strutils, tables, random, algorithm, ropes, lists, htmlgen, xmltree, strtabs @@ -177,18 +177,3 @@ block txmltree: ]) ]) doAssert(y.innerText == "foobar") - - - -block tcstrutils: - let s = cstring "abcdef" - doAssert s.startsWith("a") - doAssert not s.startsWith("b") - doAssert s.endsWith("f") - doAssert not s.endsWith("a") - - let a = cstring "abracadabra" - doAssert a.startsWith("abra") - doAssert not a.startsWith("bra") - doAssert a.endsWith("abra") - doAssert not a.endsWith("dab") |