mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15337 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
fb997983a2
commit
8e36fa69fd
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue