summary refs log tree commit diff stats
path: root/tests/accept/run/tsplit.nim
blob: 25bad33e2093871b4a1a18a000e6c62f1b1b8182 (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