summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-19 02:08:59 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-19 02:08:59 +0000
commitcfcde86709dd597b060d707e52bbb02678955120 (patch)
tree5117ea9477f2aa7d3a00a33b408985df64b60024 /test
parent2bd1fa4acec19eac3ee31a67a540ac3d7504392a (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/branches/ruby_1_8@14312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_integer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_integer.rb b/test/ruby/test_integer.rb
index 7997ba6..cfda9e5 100644
--- a/test/ruby/test_integer.rb
+++ b/test/ruby/test_integer.rb
@@ -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