class Test shared def main numbers as int[] = int[](10) assert numbers.length==10 for i as int in numbers assert i==0 for i = 0 .. numbers.length assert numbers[i]==0 numbers[i] = i assert numbers[i]==i names as String[] = @['aoeu'] assert names[0] == 'aoeu' names[0] = 'Cobra' assert names[0] == 'Co' + 'bra' assert .names[0]=='aoeu' assert .names[1]=='asdf' # TODO: stuff as String?[] = String?[](1) numbers = @[1, 2, 3] assert numbers.length==3 assert numbers[0]==1 # test equality numbers2 as int[] = @[1, 2, 3] assert numbers == numbers2 def names as String[] names as String[] = String[](2) names[0] = 'aoeu' names[1] = 'asdf' return names