diff options
Diffstat (limited to 'tests/tstrutil.nim')
-rwxr-xr-x | tests/tstrutil.nim | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/tests/tstrutil.nim b/tests/tstrutil.nim deleted file mode 100755 index 0468dfa0c..000000000 --- a/tests/tstrutil.nim +++ /dev/null @@ -1,24 +0,0 @@ -# test the new strutils module - -import - strutils - -proc testStrip() = - write(stdout, strip(" ha ")) - -proc main() = - testStrip() - for p in split("/home/a1:xyz:/usr/bin", {':'}): - write(stdout, p) - - -assert(editDistance("prefix__hallo_suffix", "prefix__hallo_suffix") == 0) -assert(editDistance("prefix__hallo_suffix", "prefix__hallo_suffi1") == 1) -assert(editDistance("prefix__hallo_suffix", "prefix__HALLO_suffix") == 5) -assert(editDistance("prefix__hallo_suffix", "prefix__ha_suffix") == 3) -assert(editDistance("prefix__hallo_suffix", "prefix") == 14) -assert(editDistance("prefix__hallo_suffix", "suffix") == 14) -assert(editDistance("prefix__hallo_suffix", "prefix__hao_suffix") == 2) - -main() -#OUT ha/home/a1xyz/usr/bin |