diff options
| author | Daniel Bovensiepen <[email protected]> | 2012-07-10 15:11:31 +0800 |
|---|---|---|
| committer | Daniel Bovensiepen <[email protected]> | 2012-07-10 15:11:31 +0800 |
| commit | e8b53090803caef8b20ff6f7cc17e3eb472a521e (patch) | |
| tree | fc67cf5dd80157c0f963a11ccaaf1a4849b7e9a2 /test/t/array.rb | |
| parent | 1855c7ae1dfa78264628eeed1c7c96386876fb9b (diff) | |
| download | mruby-e8b53090803caef8b20ff6f7cc17e3eb472a521e.tar.gz mruby-e8b53090803caef8b20ff6f7cc17e3eb472a521e.zip | |
Add a Test Case for #359 Array Corruption
Diffstat (limited to 'test/t/array.rb')
| -rw-r--r-- | test/t/array.rb | 8 |
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 + |
