diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-19 02:08:59 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-19 02:08:59 +0000 |
commit | 8c457ad4b8d2f6041002d04503fc793e4b424065 (patch) | |
tree | 15ad1b12b736182f82b8cc0588cb103d49859276 /test/ruby/test_integer.rb | |
parent | 198c0920045418b8c530b35dfab228cfeee0a4d1 (diff) |
* test/ruby/test_integer.rb (test_Integer): multiple underscores
should not be allowed after octal prefix.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_integer.rb')
-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 |