summary refs log tree commit diff stats
path: root/tests/tformat.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/tformat.nim
downloadNim-405b86068e6a3d39970b9129ceec0a9108464b28.tar.gz
Initial import
Diffstat (limited to 'tests/tformat.nim')
-rwxr-xr-xtests/tformat.nim6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/tformat.nim b/tests/tformat.nim
new file mode 100755
index 000000000..01be0df3a
--- /dev/null
+++ b/tests/tformat.nim
@@ -0,0 +1,6 @@
+# Tests the new format proc (including the & and &= operators)

+

+import strutils, io

+

+echo("Hi $1! How do you feel, $2?\n" % ["Andreas", "Rumpf"])

+#OUT Hi Andreas! How do you feel, Rumpf?