summaryrefslogtreecommitdiffstats
path: root/test/ruby/test_bignum.rb
diff options
context:
space:
mode:
authortadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-30 03:09:17 +0000
committertadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-30 03:09:17 +0000
commite041f8253d4bf23757caa43ef76ed61236186151 (patch)
tree3102b59e4fc760e4d7356ab2eca9c05d94d9f2a6 /test/ruby/test_bignum.rb
parent8cdcb980d2b312257aa9e696f53252c037671404 (diff)
downloadruby-e041f8253d4bf23757caa43ef76ed61236186151.tar.gz
ruby-e041f8253d4bf23757caa43ef76ed61236186151.tar.xz
ruby-e041f8253d4bf23757caa43ef76ed61236186151.zip
add assertions.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_bignum.rb')
-rw-r--r--test/ruby/test_bignum.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_bignum.rb b/test/ruby/test_bignum.rb
index 26e6becdb..c395e3b71 100644
--- a/test/ruby/test_bignum.rb
+++ b/test/ruby/test_bignum.rb
@@ -147,6 +147,9 @@ class TestBignum < Test::Unit::TestCase
assert_raise(ArgumentError) { Integer("1__") }
assert_raise(ArgumentError) { Integer("1_0 x") }
assert_equal(T31P, "1111111111111111111111111111111".to_i(2))
+ assert_equal(0_2, '0_2'.to_i)
+ assert_equal(00_2, '00_2'.to_i)
+ assert_equal(00_02, '00_02'.to_i)
end
def test_to_s2