blob: b8fa0c84e9597077d84e29da0b2c4359aff1cb61 [file] [log] [blame]
package groovy.bugs
class SubscriptOnStringArrayBug extends TestSupport {
void testArraySubscript() {
def array = getMockArguments()
assert array[1] == "b"
array[0] = "d"
assert array[0] == "d"
println("Contents of array are ${array.inspect()}")
}
void testRobsTestCase() {
def array = "one two three".split(" ")
assert array[1] == "two"
}
}