diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-25 13:56:36 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-25 13:56:36 +0000 |
commit | a0c09867ab8e2cde6784d765628846f9862a0706 (patch) | |
tree | 7f73d5d46264861481c98b41c86f644cd09e7212 /test | |
parent | 2d5e2cc289b85b5df00ab32a171eb16e9055b7eb (diff) |
revert r54276 because of incompatibility.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@54287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_float.rb | 2 | ||||
-rw-r--r-- | test/ruby/test_numeric.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb index ca171b5c27..a959f60a69 100644 --- a/test/ruby/test_float.rb +++ b/test/ruby/test_float.rb @@ -558,7 +558,7 @@ class TestFloat < Test::Unit::TestCase end def test_num2dbl - assert_raise(TypeError) do + assert_raise(ArgumentError) do 1.0.step(2.0, "0.5") {} end assert_raise(TypeError) do diff --git a/test/ruby/test_numeric.rb b/test/ruby/test_numeric.rb index 79e152955e..98fabc4e13 100644 --- a/test/ruby/test_numeric.rb +++ b/test/ruby/test_numeric.rb @@ -247,8 +247,8 @@ class TestNumeric < Test::Unit::TestCase assert_raise(ArgumentError) { 1.step(10, 1, 0).size } assert_raise(ArgumentError) { 1.step(10, 0) { } } assert_raise(ArgumentError) { 1.step(10, 0).size } - assert_raise(TypeError) { 1.step(10, "1") { } } - assert_raise(TypeError) { 1.step(10, "1").size } + assert_raise(ArgumentError) { 1.step(10, "1") { } } + assert_raise(ArgumentError) { 1.step(10, "1").size } assert_raise(TypeError) { 1.step(10, nil) { } } assert_raise(TypeError) { 1.step(10, nil).size } assert_nothing_raised { 1.step(by: 0, to: nil) } |