mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* bignum.c (rb_cstr_to_inum): an underscore succeeding after octal
prefix is allowed. [ruby-core:14139] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
eddc9b7fd4
commit
198c092004
3 changed files with 9 additions and 1 deletions
|
|
@ -670,5 +670,8 @@ class TestInteger < Test::Unit::TestCase
|
|||
assert_nothing_raised(ArgumentError, "[ruby-core:13873]") {
|
||||
assert_equal(0, Integer("0 "))
|
||||
}
|
||||
assert_nothing_raised(ArgumentError, "[ruby-core:14139]") {
|
||||
assert_equal(0377, Integer("0_3_7_7"))
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue