summary refs log tree commit diff stats
path: root/tests/stdlib/tformat.nim
blob: 160ab0fd5604f3df94633f9a91d2290f0936a1e0 (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?