From 8e36fa69fd901a012ecdb056d3aedd97f9124879 Mon Sep 17 00:00:00 2001 From: tadf Date: Wed, 30 Jan 2008 03:09:17 +0000 Subject: add assertions. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_bignum.rb | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v1.2.3