Initial import
This commit is contained in:
commit
405b86068e
324 changed files with 163599 additions and 0 deletions
16
tests/tstrutil.nim
Executable file
16
tests/tstrutil.nim
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
# test the new strutils module
|
||||
|
||||
import
|
||||
strutils, io
|
||||
|
||||
proc testStrip() =
|
||||
write(stdout, strip(" ha "))
|
||||
|
||||
proc main() =
|
||||
testStrip()
|
||||
for p in split("/home/a1:xyz:/usr/bin", {':'}):
|
||||
write(stdout, p)
|
||||
|
||||
|
||||
main()
|
||||
#OUT ha/home/a1xyz/usr/bin
|
||||
Loading…
Add table
Add a link
Reference in a new issue