fitSharp
Parse Array
The Parse Array operator uses a comma-separated string to specify an array. To specify an empty array, use the 'blank' keyword.

when input is
story test fixture
checkplain test'sample domain'

set strings a,b,c
check strings a,b,c
check 'strings at' 2 c

name symbol1 string: x
name symbol2 string: y
set strings <<symbol1,<<symbol2
check strings x,y

set strings blank
check 'strings at' 0 exception[IndexOutOfRangeException]
sample domain

set strings a,b,c
check strings a,b,c
check strings at 2 c

name symbol1 string: x
name symbol2 string: y
set strings <<symbol1,<<symbol2
check strings x,y

set strings blank
check strings at 0 exception[IndexOutOfRangeException]
'sample domain'

set strings a,b,c
check strings a,b,c
check 'strings at' 2 c

name symbol1 string: x
name symbol2 string: y
set strings <<symbol1,<<symbol2
check strings x,y

set strings blank
check 'strings at' 0 exception[IndexOutOfRangeException]
then output is
sample domain

set strings a,b,c
check strings a,b,c
check strings at 2 c

name symbol1 string: x
name symbol2 string: y
set strings <<symbol1,<<symbol2
check strings x,y

set strings blank
check strings at 0 exception[IndexOutOfRangeException]
Copyright © 2022 Syterra Software Inc. All rights reserved.