diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-02 08:25:11 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-05-02 08:25:11 +0000 |
commit | 59fc499c6364fc8d8acd52302b21570cfa7577d1 (patch) | |
tree | 97b00496878ce9b68d9b14042191e3a63f3d35b9 /test/json | |
parent | fd1762b45be006d967008dbd784c29f9926aa01b (diff) | |
download | ruby-59fc499c6364fc8d8acd52302b21570cfa7577d1.tar.gz |
* test: fixed wrong assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27587 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/json')
-rwxr-xr-x | test/json/test_json_addition.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/json/test_json_addition.rb b/test/json/test_json_addition.rb index ec89c07e6d..d30853af48 100755 --- a/test/json/test_json_addition.rb +++ b/test/json/test_json_addition.rb @@ -151,12 +151,12 @@ class TC_JSONAddition < Test::Unit::TestCase def test_utc_datetime now = Time.now d = DateTime.parse(now.to_s) # usual case - assert d, JSON.parse(d.to_json) + assert_equal d, JSON.parse(d.to_json) d = DateTime.parse(now.utc.to_s) # of = 0 - assert d, JSON.parse(d.to_json) + assert_equal d, JSON.parse(d.to_json) d = DateTime.civil(2008, 6, 17, 11, 48, 32, 1) # of = 1 / 12 => 1/12 - assert d, JSON.parse(d.to_json) + assert_equal d, JSON.parse(d.to_json) d = DateTime.civil(2008, 6, 17, 11, 48, 32, 12) # of = 12 / 12 => 12 - assert d, JSON.parse(d.to_json) + assert_equal d, JSON.parse(d.to_json) end end |