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/branches/ruby_1_8@14312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2bd1fa4ace
commit
cfcde86709
1 changed files with 1 additions and 0 deletions
|
@ -648,5 +648,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…
Add table
Add a link
Reference in a new issue