Merge pull request #361 from bovi/test-ary-corruption

Add a Test Case for #359 Array Corruption
This commit is contained in:
Yukihiro "Matz" Matsumoto
2012-07-10 06:11:04 -07:00
+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