From ba77836f303333ec595c0420cd450787203b80d8 Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 30 Jun 2008 13:50:18 +0000 Subject: * test/ruby/test_array.rb (test_aset): access with too big index raises not ArgumentError but IndexError now. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@17743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_array.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/ruby') diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 877df749f..42553d193 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -1346,8 +1346,8 @@ class TestArray < Test::Unit::TestCase def test_aset assert_raise(IndexError) { [0][-2] = 1 } - assert_raise(ArgumentError) { [0][LONGP] = 2 } - assert_raise(ArgumentError) { [0][(LONGP + 1) / 2 - 1] = 2 } + assert_raise(IndexError) { [0][LONGP] = 2 } + assert_raise(IndexError) { [0][(LONGP + 1) / 2 - 1] = 2 } a = [0] a[2] = 4 assert_equal([0, nil, 4], a) -- cgit