summaryrefslogtreecommitdiff
path: root/test
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
commit8e36fa69fd901a012ecdb056d3aedd97f9124879 (patch)
tree3102b59e4fc760e4d7356ab2eca9c05d94d9f2a6 /test
parentfb997983a29d97dbac13354c8e87cdf2b1742c4d (diff)
add assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 26e6becdb2..c395e3b71a 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