summary refs log tree commit diff stats
path: root/tests/stdlib/tsplit.nim
blob: 5a1cd2f5fac152daeddb72685e7e189bf1a38aa5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
discard """
  file: "tsplit.nim"
  output: "true"
"""
import strutils

var s = ""
for w in split("|abc|xy|z", {'|'}):
  s.add("#")
  s.add(w)

if s == "#abc#xy#z":
  echo "true"
else:
  echo "false"

#OUT true