summary refs log tree commit diff stats
path: root/tests/tstrutil.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andi>2008-06-22 16:14:11 +0200
committerAndreas Rumpf <andreas@andi>2008-06-22 16:14:11 +0200
commit405b86068e6a3d39970b9129ceec0a9108464b28 (patch)
treec0449946f54baae6ea88baf453157ddd7faa8f86 /tests/tstrutil.nim
downloadNim-405b86068e6a3d39970b9129ceec0a9108464b28.tar.gz
Initial import
Diffstat (limited to 'tests/tstrutil.nim')
-rwxr-xr-xtests/tstrutil.nim16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/tstrutil.nim b/tests/tstrutil.nim
new file mode 100755
index 000000000..9ed2ace3a
--- /dev/null
+++ b/tests/tstrutil.nim
@@ -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