summaryrefslogtreecommitdiff
path: root/test/json/test_json_generate.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/json/test_json_generate.rb')
-rw-r--r--test/json/test_json_generate.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/json/test_json_generate.rb b/test/json/test_json_generate.rb
index 519d56a..82d8c3d 100644
--- a/test/json/test_json_generate.rb
+++ b/test/json/test_json_generate.rb
@@ -40,7 +40,7 @@ EOT
def test_unparse
json = unparse(@hash)
- assert_equal(@json2, json)
+ assert_equal(JSON.parse(@json2), JSON.parse(json))
parsed_json = parse(json)
assert_equal(@hash, parsed_json)
json = generate({1=>2})
@@ -51,7 +51,7 @@ EOT
def test_unparse_pretty
json = pretty_unparse(@hash)
- assert_equal(@json3, json)
+ assert_equal(JSON.parse(@json3), JSON.parse(json))
parsed_json = parse(json)
assert_equal(@hash, parsed_json)
json = pretty_generate({1=>2})