diff options
Diffstat (limited to 'test/ruby/test_bignum.rb')
-rw-r--r-- | test/ruby/test_bignum.rb | 3 |
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 |