* test/json/test_json_addition.rb (test_core): do not use Time.now
because JSON can't hold nsec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
3486311d54
commit
47daa2f218
@ -1,3 +1,8 @@
|
|||||||
|
Sat Dec 22 01:23:10 2007 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
|
* 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@ruby-lang.org>
|
Sat Dec 22 01:10:30 2007 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* ext/tk/sample/tkextlib/vu/canvSticker2.rb,
|
* ext/tk/sample/tkextlib/vu/canvSticker2.rb,
|
||||||
|
@ -112,7 +112,7 @@ EOT
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_core
|
def test_core
|
||||||
t = Time.now
|
t = Time.at(1198254128, 895990)
|
||||||
assert_equal t, JSON(JSON(t))
|
assert_equal t, JSON(JSON(t))
|
||||||
d = Date.today
|
d = Date.today
|
||||||
assert_equal d, JSON(JSON(d))
|
assert_equal d, JSON(JSON(d))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user