summary refs log tree commit diff stats
path: root/tests/tsplit.nim
blob: 711696b9ebc142d97638d3df4d05a6142dd74162 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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