From: "NAKAMURA, Hiroshi" Date: 2004-05-13T18:18:08+09:00 Subject: [ruby-dev:23495] Re: ruby 1.8.1 (2004-05-13) has 7 failures and 3 errors なひです。 akira yamada wrote: > tempfile.rbでエラーが出るので > 1.9系のlib/delegate.rbをコピーしてから > CVSのruby_1_8/testを実行してみたところ、 > 以下のようになりました。 > 3) Failure: > test_singleton(TestMarshal) [/home/akira/src/ruby/ruby_1_8/test/ruby/marshaltestlib.rb:423]: > exception expected but was > Class: > Message: <"undefined class/module Object::C"> > ---Backtrace--- > ./test/ruby/test_marshal.rb:19:in `load' > ./test/ruby/test_marshal.rb:19:in `decode' > /home/akira/src/ruby/ruby_1_8/test/ruby/marshaltestlib.rb:21:in `marshaltest' > /home/akira/src/ruby/ruby_1_8/test/ruby/marshaltestlib.rb:423:in `test_singleton' > /home/akira/src/ruby/ruby_1_8/test/ruby/marshaltestlib.rb:423:in `assert_raise' > /home/akira/src/ruby/ruby_1_8/test/ruby/marshaltestlib.rb:423:in `test_singleton' > --------------- > 7) Failure: > test_singleton(SOAP::Marshal::TestMarshal) [/home/akira/src/ruby/ruby_1_8/test/ruby/marshaltestlib.rb:423]: > exception expected but none was thrown. これはどうしますかね。1.9でTypeErrorになったので、1.8でもテストの期待値 を変更しちゃったんですが、1.8はArgumentErrorのままになるでしょうか。関連 する変更を探してから、と思ってましたが、そう思ううちに放置してしまってま した。。。 > 4) Failure: > test_SOAPFloat(SOAP::TestSOAP) > [./test/soap/test_basetype.rb:163:in `test_SOAPFloat' > ./test/soap/test_basetype.rb:162:in `each' > ./test/soap/test_basetype.rb:162:in `test_SOAPFloat']: > <1.3999999999999999e-45> expected but was > <0.0e+00>. > 9) Failure: > test_XSDFloat(XSD::TestXSD) > [./test/xsd/test_xsd.rb:196:in `test_XSDFloat' > ./test/xsd/test_xsd.rb:195:in `each' > ./test/xsd/test_xsd.rb:195:in `test_XSDFloat']: > <1.3999999999999999e-45> expected but was > <0.0e+00>. むむ。見てみます。とりあえず保留。 > 5) Error: > test_float(SOAP::Marshal::TestMarshal): > XSD::ValueSpaceError: {http://www.w3.org/2001/XMLSchema}double: cannot accept '+0'. > /usr/lib/ruby/1.8/xsd/datatypes.rb:386:in `_set' > /usr/lib/ruby/1.8/xsd/datatypes.rb:114:in `set' > /usr/lib/ruby/1.8/soap/encodingstyle/soapHandler.rb:456:in `decode_textbuf' > /usr/lib/ruby/1.8/soap/encodingstyle/soapHandler.rb:209:in `decode_tag_end' > /usr/lib/ruby/1.8/soap/parser.rb:184:in `decode_tag_end' > /usr/lib/ruby/1.8/soap/parser.rb:145:in `end_element' > /usr/lib/ruby/1.8/xsd/xmlparser/parser.rb:75:in `end_element' > /usr/lib/ruby/1.8/xsd/xmlparser/rexmlparser.rb:38:in `tag_end' > /usr/lib/ruby/1.8/rexml/parsers/streamparser.rb:19:in `parse' > /usr/lib/ruby/1.8/rexml/document.rb:169:in `parse_stream' > /usr/lib/ruby/1.8/xsd/xmlparser/rexmlparser.rb:27:in `do_parse' > /usr/lib/ruby/1.8/soap/parser.rb:89:in `parse' > /usr/lib/ruby/1.8/soap/processor.rb:36:in `unmarshal' > /usr/lib/ruby/1.8/soap/marshal.rb:44:in `unmarshal' > /usr/lib/ruby/1.8/soap/marshal.rb:32:in `load' > ./test/soap/marshal/test_marshal.rb:22:in `decode' > /home/akira/src/ruby/ruby_1_8/test/ruby/marshaltestlib.rb:21:in `marshaltest' > /home/akira/src/ruby/ruby_1_8/test/ruby/marshaltestlib.rb:27:in `marshal_equal' > /home/akira/src/ruby/ruby_1_8/test/ruby/marshaltestlib.rb:198:in `test_float' > > 6) Error: > test_float_inf_nan(SOAP::Marshal::TestMarshal): > XSD::ValueSpaceError: {http://www.w3.org/2001/XMLSchema}double: cannot accept '-0'. > /usr/lib/ruby/1.8/xsd/datatypes.rb:386:in `_set' > /usr/lib/ruby/1.8/xsd/datatypes.rb:114:in `set' > /usr/lib/ruby/1.8/soap/encodingstyle/soapHandler.rb:456:in `decode_textbuf' > /usr/lib/ruby/1.8/soap/encodingstyle/soapHandler.rb:209:in `decode_tag_end' > /usr/lib/ruby/1.8/soap/parser.rb:184:in `decode_tag_end' > /usr/lib/ruby/1.8/soap/parser.rb:145:in `end_element' > /usr/lib/ruby/1.8/xsd/xmlparser/parser.rb:75:in `end_element' > /usr/lib/ruby/1.8/xsd/xmlparser/rexmlparser.rb:38:in `tag_end' > /usr/lib/ruby/1.8/rexml/parsers/streamparser.rb:19:in `parse' > /usr/lib/ruby/1.8/rexml/document.rb:169:in `parse_stream' > /usr/lib/ruby/1.8/xsd/xmlparser/rexmlparser.rb:27:in `do_parse' > /usr/lib/ruby/1.8/soap/parser.rb:89:in `parse' > /usr/lib/ruby/1.8/soap/processor.rb:36:in `unmarshal' > /usr/lib/ruby/1.8/soap/marshal.rb:44:in `unmarshal' > /usr/lib/ruby/1.8/soap/marshal.rb:32:in `load' > ./test/soap/marshal/test_marshal.rb:22:in `decode' > /home/akira/src/ruby/ruby_1_8/test/ruby/marshaltestlib.rb:21:in `marshaltest' > /home/akira/src/ruby/ruby_1_8/test/ruby/marshaltestlib.rb:27:in `marshal_equal' > /home/akira/src/ruby/ruby_1_8/test/ruby/marshaltestlib.rb:206:in `test_float_inf_nan' これは、1.9にも入った 0% ruby18 -e 'Float("0")' -e:1:in `Float': invalid value for Float(): "0" (ArgumentError) from -e:1 の影響で、まだ開発途中かもと思い、とりあえず1.9のtest/ruby/test_float.rb にテストを入れてあります。どうしましょうかね。とりあえず test/ruby/test_float.rbは、テストをどんどん追加してほしいです。今度は変 更前に。 > 8) Failure: > test_assert_in_delta(Test::Unit::TC_Assertions) > [./test/testunit/test_assertions.rb:13:in `check' > ./test/testunit/test_assertions.rb:35:in `check_assertions' > ./test/testunit/test_assertions.rb:56:in `check_fails' > ./test/testunit/test_assertions.rb:478:in `test_assert_in_delta']: > Should have the correct message. > <"The delta should not be negative.\n<-0.1> expected to be\n>=\n<0.0>."> expected but was > <"The delta should not be negative.\n<-0.1> expected to be\n>=\n<0.0e+00>."> > これもそれ関係かなぁ。