ruby-changes:3848
From: ko1@a...
Date: Wed, 30 Jan 2008 12:09:24 +0900 (JST)
Subject: [ruby-changes:3848] tadf - Ruby:r15337 (trunk): add assertions.
tadf 2008-01-30 12:09:17 +0900 (Wed, 30 Jan 2008) New Revision: 15337 Modified files: trunk/test/ruby/test_bignum.rb Log: add assertions. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_bignum.rb?r1=15337&r2=15336&diff_format=u Index: test/ruby/test_bignum.rb =================================================================== --- test/ruby/test_bignum.rb (revision 15336) +++ test/ruby/test_bignum.rb (revision 15337) @@ -147,6 +147,9 @@ 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 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/