summaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-07-11 18:40:59 +0900
committerYukihiro Matsumoto <[email protected]>2012-07-11 18:40:59 +0900
commit25aea66a339d92bb0fd1efd50dbf412d6ebadc0d (patch)
tree8a3df7be562d015cebd79279d3f3095f253c8ab0 /test
parent0ebf5c0a6f76da27212b36c908c4187289d6fc24 (diff)
parent76851fc38ad93d8916b525c5de0153aa7b8c45a3 (diff)
downloadmruby-25aea66a339d92bb0fd1efd50dbf412d6ebadc0d.tar.gz
mruby-25aea66a339d92bb0fd1efd50dbf412d6ebadc0d.zip
Merge branch 'master' of github.com:mruby/mruby
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
+