ruby-changes:4916
From: ko1@a...
Date: Wed, 14 May 2008 09:01:41 +0900 (JST)
Subject: [ruby-changes:4916] akr - Ruby:r16409 (trunk): test the actual value of (10**32768-1).to_s.
akr 2008-05-14 09:01:24 +0900 (Wed, 14 May 2008) New Revision: 16409 Modified files: trunk/test/ruby/test_bignum.rb Log: test the actual value of (10**32768-1).to_s. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_bignum.rb?r1=16409&r2=16408&diff_format=u Index: test/ruby/test_bignum.rb =================================================================== --- test/ruby/test_bignum.rb (revision 16408) +++ test/ruby/test_bignum.rb (revision 16409) @@ -163,9 +163,7 @@ def test_to_s2 assert_raise(ArgumentError) { T31P.to_s(37) } - str = (10**32768-1).to_s - assert_equal("q", str.tr_s("9", "q")) - assert_equal(32768, str.size) + assert_equal("9" * 32768, (10**32768-1).to_s) assert_raise(RangeError) { Process.wait(1, T64P) } assert_equal("0", T_ZERO.to_s) assert_equal("1", T_ONE.to_s) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/