diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-26 05:41:37 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-02-26 05:41:37 +0000 |
commit | a978c6dafa836556dc626ce967a60274ec5a216c (patch) | |
tree | 675268d4e5556aaebe516dde79fc3f61c17bfddf /test/ruby/test_float.rb | |
parent | fd92166c81abb5f7e3bde47fe9719cec29894be5 (diff) | |
download | ruby-a978c6dafa836556dc626ce967a60274ec5a216c.tar.gz |
numeric.c: wrong type step should raise TypeError
* numeric.c (num_step_scan_args): comparison String with Numeric
should raise TypeError. it is an invalid type, but not a
mismatch the number of arguments. [ruby-core:62430] [Bug #9810]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_float.rb')
-rw-r--r-- | test/ruby/test_float.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_float.rb b/test/ruby/test_float.rb index 3afd26d0b4..aeac359081 100644 --- a/test/ruby/test_float.rb +++ b/test/ruby/test_float.rb @@ -601,7 +601,7 @@ class TestFloat < Test::Unit::TestCase end def test_num2dbl - assert_raise(ArgumentError) do + assert_raise(TypeError) do 1.0.step(2.0, "0.5") {} end assert_raise(TypeError) do |