summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/t/array.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/t/array.rb b/test/t/array.rb
index 3f441c1cc..a1ef830a2 100644
--- a/test/t/array.rb
+++ b/test/t/array.rb
@@ -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
+