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

ruby-changes:2946

From: ko1@a...
Date: 22 Dec 2007 01:26:17 +0900
Subject: [ruby-changes:2946] shugo - Ruby:r14437 (trunk): * test/json/test_json_addition.rb (test_core): do not use Time.now

shugo	2007-12-22 01:25:53 +0900 (Sat, 22 Dec 2007)

  New Revision: 14437

  Modified files:
    trunk/ChangeLog
    trunk/test/json/test_json_addition.rb

  Log:
    * test/json/test_json_addition.rb (test_core): do not use Time.now
      because JSON can't hold nsec.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/test/json/test_json_addition.rb?r1=14437&r2=14436
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14437&r2=14436

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14436)
+++ ChangeLog	(revision 14437)
@@ -1,3 +1,8 @@
+Sat Dec 22 01:23:10 2007  Shugo Maeda  <shugo@r...>
+
+	* test/json/test_json_addition.rb (test_core): do not use Time.now
+	  because JSON can't hold nsec.
+
 Sat Dec 22 01:10:30 2007  NAKAMURA Usaku  <usa@r...>
 
 	* ext/tk/sample/tkextlib/vu/canvSticker2.rb,
Index: test/json/test_json_addition.rb
===================================================================
--- test/json/test_json_addition.rb	(revision 14436)
+++ test/json/test_json_addition.rb	(revision 14437)
@@ -112,7 +112,7 @@
   end
 
   def test_core
-    t = Time.now
+    t = Time.at(1198254128, 895990)
     assert_equal t, JSON(JSON(t))
     d = Date.today
     assert_equal d, JSON(JSON(d))

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

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