User Tools

Site Tools


tasks:automated_test1
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:

button: Done, no further issues found
;
tasks/automated_test1.txt · Last modified: 2026/01/01 22:22 (external edit)