summary refs log tree commit diff stats
path: root/tests/accept/run/tformat.nim
blob: 92c0c16f50fee0b58b8848fccd1bc408d1fe181d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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?