summary refs log blame commit diff stats
path: root/tests/stdlib/tsplit.nim
blob: 44da58acaaadd8551b88ba43e21e2243c7c5c30e (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11



                    






                                   
                     


              
 

         

 
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