Add a Test Case for #359 Array Corruption

This commit is contained in:
Daniel Bovensiepen
2012-07-10 15:11:31 +08:00
parent 1855c7ae1d
commit e8b5309080
+8
View File
@@ -243,3 +243,11 @@ assert('Array#to_s', '15.2.12.5.31') do
end
# Not ISO specified
assert("Array (Shared Array Corruption)") do
a = [ "a", "b", "c", "d", "e", "f" ]
b = a.slice(1, 3)
a.clear
b.clear
end