[前][次][番号順一覧][スレッド一覧]

ruby-changes:2970

From: ko1@a...
Date: 22 Dec 2007 14:19:47 +0900
Subject: [ruby-changes:2970] ko1 - Ruby:r14461 (trunk): * test/ruby/test_float.rb, test_sprintf.rb: fix test place.

ko1	2007-12-22 14:19:38 +0900 (Sat, 22 Dec 2007)

  New Revision: 14461

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_float.rb
    trunk/test/ruby/test_sprintf.rb

  Log:
    * test/ruby/test_float.rb, test_sprintf.rb: fix test place.
    


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14461&r2=14460
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_sprintf.rb?r1=14461&r2=14460
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/ruby/test_float.rb?r1=14461&r2=14460

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14460)
+++ ChangeLog	(revision 14461)
@@ -1,3 +1,7 @@
+Sat Dec 22 14:18:45 2007  Koichi Sasada  <ko1@a...>
+
+	* test/ruby/test_float.rb, test_sprintf.rb: fix test place.
+
 Sat Dec 22 14:17:02 2007  Koichi Sasada  <ko1@a...>
 
 	* bootstraptest/test_objectspace.rb: skip flozen string.
Index: test/ruby/test_sprintf.rb
===================================================================
--- test/ruby/test_sprintf.rb	(revision 14460)
+++ test/ruby/test_sprintf.rb	(revision 14461)
@@ -174,4 +174,9 @@
 
     assert_raise(ArgumentError, "[ruby-core:11573]") {sprintf("%.25555555555555555555555555555555555555s", "hello")}
   end
+
+  def test_float
+    assert_equal("36893488147419111424",
+                 sprintf("%20.0f", 36893488147419107329.0))
+  end
 end
Index: test/ruby/test_float.rb
===================================================================
--- test/ruby/test_float.rb	(revision 14460)
+++ test/ruby/test_float.rb	(revision 14461)
@@ -13,8 +13,6 @@
     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
 
   def nan_test(x,y)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]