diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-10 15:08:31 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-10 15:08:31 +0000 |
commit | b0388e77e3668973d291f0d6fec3c4401c15c8df (patch) | |
tree | 4b78a26576e6415c7c5891a210470aea25962202 /env.h | |
parent | 39a6f7e34e5657cfa775c1108f7efecf196128ea (diff) |
* array.c (rb_ary_slice_bang): If an invalid negative index (<=
-size) is given, do not raise an exception but return nil just
like slice() does.
* test/ruby/test_array.rb (TestArray::test_slice,
TestArray::test_slice!): Pull in test cases from trunk.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@14184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'env.h')
0 files changed, 0 insertions, 0 deletions