Files
Nim/tests/run/tformat.nim
2011-11-19 15:45:51 +01:00

13 lines
277 B
Nim
Executable File

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?