diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-06 22:38:42 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-06 22:38:42 +0000 |
commit | b60d64b001c8819e6626b00efbeae96560368a08 (patch) | |
tree | 5f4596a1a68c41d917a4aacb43b9804c2121158b /test/json/test_json_generate.rb | |
parent | 6d2dee14f3d5d4224effd0ec2d8fbc07dc54cbac (diff) | |
download | ruby-b60d64b001c8819e6626b00efbeae96560368a08.tar.gz |
* lib/json/common.rb: Ponder offering parse\! method.
* lib/json/editor.rb: be a bit more robust while loading data.
* ext/json/ext/{generator,parser}/extconf.rb:
add a have_header directive for st.h
* test/json: fix some tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/json/test_json_generate.rb')
-rw-r--r-- | test/json/test_json_generate.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/json/test_json_generate.rb b/test/json/test_json_generate.rb index 519d56ac5d..82d8c3d286 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}) |