summary refs log blame commit diff stats
path: root/tests/stdlib/tsplit.nim
blob: 5a1cd2f5fac152daeddb72685e7e189bf1a38aa5 (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