From: SASADA Koichi Date: 2007-06-06T22:19:20+09:00 Subject: [ruby-dev:30901] Re: JSON ライブラリを取り込みました  ささだです。 NARUSE, Yui さんは書きました: > というわけで、v1.1.0 が出たので取り込みました。 > ご協力くださった方はありがとうございました。 >  手元でテストすると 2 failures なのですが、何か心当たりってあ ります? > ko1@vd:~/ruby/build$ make test-all TESTS='-v json' > ./miniruby ../trunk/runruby.rb --extout=.ext -- "../trunk/test/runner.rb" --basedir="../trunk/test" --runner=console -v json > Skipping permutation tests. > Loaded suite json > Started > test_backslash(TC_JSON): . > test_comments(TC_JSON): . > test_construction(TC_JSON): . > test_nesting(TC_JSON): . > test_parse_array(TC_JSON): . > test_parse_arrays(TC_JSON): . > test_parse_object(TC_JSON): . > test_parse_simple_arrays(TC_JSON): . > test_parse_simple_objects(TC_JSON): . > test_parse_values(TC_JSON): . > test_parser_reset(TC_JSON): . > test_wrong_inputs(TC_JSON): . > test_extended_json(TC_JSONAddition): . > test_extended_json_fail(TC_JSONAddition): . > test_raw_strings(TC_JSONAddition): . > test_failing(TC_JSONFixtures): . > test_passing(TC_JSONFixtures): /home/ko1/ruby/trunk/lib/json/common.rb:106: warning: Float 23456789012E666 out of range > . > test_states(TC_JSONGenerate): . > test_unparse(TC_JSONGenerate): F > test_unparse_pretty(TC_JSONGenerate): F > test_chars(TC_JSONUnicode): . > test_unicode(TC_JSONUnicode): . > > Finished in 0.313759 seconds. > > 1) Failure: > test_unparse(TC_JSONGenerate) [/home/ko1/ruby/trunk/test/json/test_json_generate.rb:43]: > <"{\"a\":2,\"b\":3.141,\"c\":\"c\",\"d\":[1,\"b\",3.14],\"e\":{\"foo\":\"bar\"},\"g\":\"\\\"\\u0000\\u001f\",\"h\":1000.0,\"i\":0.001}"> expected but was > <"{\"a\":2,\"h\":1000.0,\"g\":\"\\\"\\u0000\\u001f\",\"b\":3.141,\"d\":[1,\"b\",3.14],\"c\":\"c\",\"i\":0.001,\"e\":{\"foo\":\"bar\"}}">. > > 2) Failure: > test_unparse_pretty(TC_JSONGenerate) [/home/ko1/ruby/trunk/test/json/test_json_generate.rb:54]: > <"{\n \"a\": 2,\n \"b\": 3.141,\n \"c\": \"c\",\n \"d\": [\n 1,\n \"b\",\n 3.14\n ],\n \"e\": {\n \"foo\": \"bar\"\n },\n \"g\": \"\\\"\\u0000\\u001f\",\n \"h\": 1000.0,\n \"i\": 0.001\n}"> expected but was > <"{\n \"a\": 2,\n \"h\": 1000.0,\n \"g\": \"\\\"\\u0000\\u001f\",\n \"b\": 3.141,\n \"d\": [\n 1,\n \"b\",\n 3.14\n ],\n \"c\": \"c\",\n \"i\": 0.001,\n \"e\": {\n \"foo\": \"bar\"\n }\n}">. > > 22 tests, 327 assertions, 2 failures, 0 errors > make: *** [test-all] Error 1 -- // SASADA Koichi at atdot dot net