summary refs log tree commit diff stats
path: root/tests/stdlib/tformat.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/stdlib/tformat.nim')
-rw-r--r--tests/stdlib/tformat.nim12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/stdlib/tformat.nim b/tests/stdlib/tformat.nim
new file mode 100644
index 000000000..92c0c16f5
--- /dev/null
+++ b/tests/stdlib/tformat.nim
@@ -0,0 +1,12 @@
+discard """
+  file: "tformat.nim"
+  output: "Hi Andreas! How do you feel, Rumpf?"
+"""
+# Tests the new format proc (including the & and &= operators)

+

+import strutils

+

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

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

+
+