ruby-changes:2967
From: ko1@a...
Date: 22 Dec 2007 12:15:45 +0900
Subject: [ruby-changes:2967] usa - Ruby:r14458 (trunk): * test/ruby/test_float.rb (test_float): test literal, not sprintf.
usa 2007-12-22 12:15:36 +0900 (Sat, 22 Dec 2007) New Revision: 14458 Modified files: trunk/test/ruby/test_float.rb Log: * test/ruby/test_float.rb (test_float): test literal, not sprintf. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_float.rb?r1=14458&r2=14457 Index: test/ruby/test_float.rb =================================================================== --- test/ruby/test_float.rb (revision 14457) +++ test/ruby/test_float.rb (revision 14458) @@ -11,6 +11,8 @@ assert_equal(3, 2.6.round) assert_equal(-2, (-2.4).truncate) assert((13.4 % 1 - 0.4).abs < 0.0001) + assert_equal(36893488147419111424, + 36893488147419107329.0.to_i) assert_equal("36893488147419111424", sprintf("%20.0f", 36893488147419107329.0)) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml