From e8b53090803caef8b20ff6f7cc17e3eb472a521e Mon Sep 17 00:00:00 2001 From: Daniel Bovensiepen Date: Tue, 10 Jul 2012 15:11:31 +0800 Subject: Add a Test Case for #359 Array Corruption --- test/t/array.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') 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 + -- cgit v1.2.3