Title:automated_test1
Sex: Female T Male T Trans T
Require:
Limits:
show:This is an automated test to make sure that current tasks still work in V5

assign:foo1:'a,b,c,d'

if: '$foo1'.split(',')[2] != 'c'
  button:error 1 - issue with split
fi:

if: '$foo1'.length-1 != 6
  button:error 2 - issue with length
fi:

assign:bAndComma:'b,'
assign:foo2:'a,b,c,d'.replace('$bAndComma','B;')
if: '$foo2' != 'a,B;c,d'
  button:error 3 - issue with replace
fi:

if: '$foo1'.indexOf('b') != 2
  button:error 4 - issue with indexOf
fi:

assign:number2:2
if: '$foo1'.substring($number2,4) != 'b,'
  button:error 5 - issue with substring
fi:

assign:foo3:'a1,a2;b1,b2;c1,c2'
if: '$foo3'.split(';')[1].split(',')[1] != 'b2'
  button:error 6 - issue with split
fi:

assign:foo4:'$foo3'.split(';')[1]
if: '$foo4'.split(',')[1] != 'b2'
  button:error 7 - issue with split (when avoiding chaining)
fi:

button: Done, no further issues found
;