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