diff options
-rw-r--r-- | test/ruby/test_integer.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_integer.rb b/test/ruby/test_integer.rb index db62a08cc4..81501a61c3 100644 --- a/test/ruby/test_integer.rb +++ b/test/ruby/test_integer.rb @@ -673,5 +673,6 @@ class TestInteger < Test::Unit::TestCase assert_nothing_raised(ArgumentError, "[ruby-core:14139]") { assert_equal(0377, Integer("0_3_7_7")) } + assert_raise(ArgumentError, "[ruby-core:14139]") {Integer("0__3_7_7")} end end |