mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
198c092004
commit
8c457ad4b8
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue