summary refs log blame commit diff stats
path: root/tests/stdlib/tsplit.nim
blob: 25bad33e2093871b4a1a18a000e6c62f1b1b8182 (plain) (tree)
1
2
3
4



                    













                                   

 
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