[1.9] Failures in Psych tests
-----------------------------

                 Key: JRUBY-5371
                 URL: http://jira.codehaus.org/browse/JRUBY-5371
             Project: JRuby
          Issue Type: Bug
          Components: Extensions, Ruby 1.9
    Affects Versions: JRuby 1.6RC1
            Reporter: Charles Oliver Nutter


Failures are commented out when there's only one per file, or whole files are 
excluded from test/ruby_1_9_index.

{noformat}
  1) Failure:
test_dump_with_tag(Psych::TestCoder) 
[test/externals/ruby1.9/psych/test_coder.rb:153]:
Expected /\{aa/ to match "%YAML 1.1\n--- 
!helloruby/object:Psych::TestCoder::TaggingCoder\n! \"aa\": ! \"1\"\n! \"bb\": 
! \"2\"\n...\n".


  1) Failure:
test_round_trip_with_offset(Psych::TestDateTime) 
[test/externals/ruby1.9/psych/test_date_time.rb:20]:
Expected #<DateTime: 2011-01-17T04:37:11+01:01 
(212161995360677/86400000,3671/86400,2299161)>, not #<DateTime: 
2011-01-16T21:36:00-06:00 (245557865/100,-1/4,2299161)>.

  2) Failure:
test_round_trip(Psych::TestDateTime) 
[test/externals/ruby1.9/psych/test_date_time.rb:14]:
Expected #<DateTime: 2011-01-16T21:36:00-06:00 
(35360332560119/14400000,-1/4,2299161)>, not #<DateTime: 
2011-01-16T21:36:00-06:00 (245557865/100,-1/4,2299161)>.



  1) Failure:
test_emit_tag(Psych::TestDocument) 
[test/externals/ruby1.9/psych/test_document.rb:21]:
Expected /%TAG\ !\ tag:tenderlovemaking\.com,2009:/ to match "%YAML 1.1\n--- 
!<tag:tenderlovemaking.com,2009:fun> \"\"\n".

  2) Failure:
test_emit_multitag(Psych::TestDocument) 
[test/externals/ruby1.9/psych/test_document.rb:27]:
Expected /%TAG\ !\ tag:tenderlovemaking\.com,2009:/ to match "%YAML 1.1\n%TAG 
!! foo.com,2009:\n--- !<tag:tenderlovemaking.com,2009:fun> \"\"\n".

  3) Failure:
test_parse_tag(Psych::TestDocument) 
[test/externals/ruby1.9/psych/test_document.rb:16]:
Expected [["!", "tag:tenderlovemaking.com,2009:"]], not [].


  1) Failure:
test_scalar_arg_error(Psych::TestEmitter) 
[test/externals/ruby1.9/psych/test_emitter.rb:68]:
TypeError expected but nothing was raised.

  2) Failure:
test_start_stream_arg_error(Psych::TestEmitter) 
[test/externals/ruby1.9/psych/test_emitter.rb:37]:
TypeError expected but nothing was raised.


  1) Failure:
test_default_internal(Psych::TestEncoding) 
[test/externals/ruby1.9/psych/test_encoding.rb:42]:
&#22721;&#12395;&#32819;&#12354;&#12426;&#12289;&#38556;&#23376;&#12395;&#30446;&#12354;&#12426;.
Expected #<Encoding:EUC-JP>, not #<Encoding:UTF-8>.


  1) Failure:
test_to_yaml_properties(Psych::TestException) 
[test/externals/ruby1.9/psych/test_exception.rb:34]:
Expected #<#<Class:0x101c64ed8>: #<Class:0x101c64ed8>>, not 
#<Psych::TestException::Wups: Psych::TestException::Wups>.


  1) Failure:
test_list_to_json(Psych::TestJSONTree) 
[test/externals/ruby1.9/psych/test_json_tree.rb:37]:
Expected /]$/ to match "%YAML 1.1\n---\n- \"one\"\n- \"two\"\n...\n".

  2) Failure:
test_int(Psych::TestJSONTree) 
[test/externals/ruby1.9/psych/test_json_tree.rb:18]:
Expected /^10/ to match "%YAML 1.1\n--- ! \"10\"\n...\n".

  3) Failure:
test_nil(Psych::TestJSONTree) 
[test/externals/ruby1.9/psych/test_json_tree.rb:14]:
Expected /^null/ to match "%YAML 1.1\n--- ! \"null\"\n...\n".

  4) Failure:
test_hash(Psych::TestJSONTree) 
[test/externals/ruby1.9/psych/test_json_tree.rb:28]:
Expected /}$/ to match "%YAML 1.1\n---\n\"one\": \"two\"\n...\n".

  5) Failure:
test_float(Psych::TestJSONTree) 
[test/externals/ruby1.9/psych/test_json_tree.rb:22]:
Expected /^1.2/ to match "%YAML 1.1\n--- ! \"1.2\"\n...\n".


  1) Failure:
test_dump(Psych::TestOmap) [test/externals/ruby1.9/psych/test_omap.rb:37]:
Expected /\-\ a:\ b/ to match "%YAML 1.1\n--- !omap\n- ! \"a\": ! \"b\"\n- ! 
\"c\": ! \"d\"\n...\n".



  1) Failure:
test_mapping_tag(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:56]:
[nil, ["tag:yaml.org,2002:map", false, 2]] not in [[:start_stream, [0]], 
[:start_document, [nil, [], true]], [:start_mapping, [nil, 
"tag:yaml.org,2002:map", false, 1]], [:scalar, ["key", nil, nil, true, false, 
0]], [:scalar, ["value", nil, nil, true, false, 0]], [:end_mapping, []], 
[:end_document, [false]], [:end_stream, []]]

  2) Failure:
test_end_document_implicit(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:157]:
[nil, [true]] not in [[:start_stream, [0]], [:start_document, [nil, [], 
false]], [:scalar, ["foo", nil, nil, false, true, 34]], [:end_document, 
[false]], [:end_stream, []]]

  3) Failure:
test_literal_scalar(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:107]:
[nil, ["literal text ", false, true, 3]] not in [[:start_stream, [0]], 
[:start_document, [[1, 1], [], true]], [:scalar, ["literal text ", nil, nil, 
false, true, 34]], [:end_document, [false]], [:end_stream, []]]

  4) Failure:
test_mapping_start(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:72]:
[nil, [true, 2]] not in [[:start_stream, [0]], [:start_document, [nil, [], 
true]], [:start_mapping, [nil, nil, true, 1]], [:scalar, ["key", nil, nil, 
true, false, 0]], [:scalar, ["value", nil, nil, true, false, 0]], 
[:end_mapping, []], [:end_document, [false]], [:end_stream, []]]

  5) Failure:
test_scalar_with_anchor(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:122]:
[nil, ["foo", "A", true, false, 1]] not in [[:start_stream, [0]], 
[:start_document, [nil, [], true]], [:scalar, ["foo", "A", nil, true, false, 
0]], [:end_document, [false]], [:end_stream, []]]

  6) Failure:
test_sequence_start_anchor(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:82]:
[nil, ["A", true, 2]] not in [[:start_stream, [0]], [:start_document, [nil, [], 
true]], [:start_sequence, ["A", nil, true, 1]], [:scalar, ["1", nil, nil, true, 
false, 0]], [:scalar, ["2", nil, nil, true, false, 0]], [:end_sequence, []], 
[:end_document, [false]], [:end_stream, []]]

  7) Failure:
test_mapping_anchor(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:61]:
[nil, ["A", true, 2]] not in [[:start_stream, [0]], [:start_document, [nil, [], 
true]], [:start_mapping, ["A", nil, true, 1]], [:scalar, ["key", nil, nil, 
true, false, 0]], [:scalar, ["value", nil, nil, true, false, 0]], 
[:end_mapping, []], [:end_document, [false]], [:end_stream, []]]

  8) Failure:
test_start_document_version(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:167]:
[nil, [[1, 1], [], false]] not in [[:start_stream, [0]], [:start_document, [[1, 
1], [], true]], [:scalar, ["foo", nil, nil, false, true, 34]], [:end_document, 
[false]], [:end_stream, []]]

  9) Failure:
test_bogus_io(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:31]:
[TypeError] exception expected, not
Class: <Java::JavaLang::ClassCastException>
Message: <"org.jruby.RubyObject cannot be cast to org.jruby.RubyString">
---Backtrace---
org.jruby.util.IOInputStream.read(IOInputStream.java:126)
sun.nio.cs.StreamDecoder.readBytes(StreamDecoder.java:264)
sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:306)
sun.nio.cs.StreamDecoder.read(StreamDecoder.java:158)
java.io.InputStreamReader.read(InputStreamReader.java:167)
java.io.Reader.read(Reader.java:123)
org.yaml.snakeyaml.reader.StreamReader.update(StreamReader.java:148)
org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:117)
org.yaml.snakeyaml.reader.StreamReader.peek(StreamReader.java:106)
org.yaml.snakeyaml.scanner.ScannerImpl.scanToNextToken(ScannerImpl.java:964)
org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:237)
org.yaml.snakeyaml.scanner.ScannerImpl.checkToken(ScannerImpl.java:183)
org.yaml.snakeyaml.parser.ParserImpl$ParseImplicitDocumentStart.produce(ParserImpl.java:200)
org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:163)
org.yaml.snakeyaml.parser.ParserImpl.getEvent(ParserImpl.java:173)
org.jruby.ext.psych.PsychParser.parse(PsychParser.java:107)
org.jruby.ext.psych.PsychParser$i_method_1_0$RUBYINVOKER$parse.call(org/jruby/ext/psych/PsychParser$i_method_1_0$RUBYINVOKER$parse.gen:65535)
org.jruby.runtime.callsite.CachingCallSite.cacheAndCall(CachingCallSite.java:282)
org.jruby.runtime.callsite.CachingCallSite.call(CachingCallSite.java:139)
test.externals.ruby1_dot_9.psych.test_parser.block_1$RUBY$test_bogus_io(test/externals/ruby1.9/psych/test_parser.rb:32)
...

 10) Failure:
test_sequence_start_flow(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:92]:
[nil, [true, 2]] not in [[:start_stream, [0]], [:start_document, [nil, [], 
true]], [:start_sequence, [nil, nil, true, 1]], [:scalar, ["1", nil, nil, true, 
false, 0]], [:scalar, ["2", nil, nil, true, false, 0]], [:end_sequence, []], 
[:end_document, [false]], [:end_stream, []]]

 11) Failure:
test_syntax_error(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:44]:
[Psych::SyntaxError] exception expected, not
Class: <RuntimeError>
Message: <"null; expected '<document start>', but found Scalar">
---Backtrace---
org/jruby/ext/psych/PsychParser.java:241:in `parse'
test/externals/ruby1.9/psych/test_parser.rb:45:in `test_syntax_error'
---------------

 12) Failure:
test_scalar_with_tag(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:117]:
[nil, ["foo", "tag:yaml.org,2002:str", false, false, 1]] not in 
[[:start_stream, [0]], [:start_document, [nil, [], true]], [:scalar, ["foo", 
nil, "tag:yaml.org,2002:str", false, false, 0]], [:end_document, [false]], 
[:end_stream, []]]

 13) Failure:
test_scalar_plain_implicit(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:127]:
[nil, ["foo", "A", true, false, 1]] not in [[:start_stream, [0]], 
[:start_document, [nil, [], true]], [:scalar, ["foo", "A", nil, true, false, 
0]], [:end_document, [false]], [:end_stream, []]]

 14) Failure:
test_end_document_explicit(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:162]:
[nil, [false]] not in [[:start_stream, [0]], [:start_document, [nil, [], 
false]], [:scalar, ["foo", nil, nil, false, true, 34]], [:end_document, 
[true]], [:end_stream, []]]

 15) Failure:
test_sequence_start_block(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:97]:
[nil, [true, 1]] not in [[:start_stream, [0]], [:start_document, [nil, [], 
true]], [:start_sequence, [nil, nil, true, 0]], [:scalar, ["1", nil, nil, true, 
false, 0]], [:scalar, ["2", nil, nil, true, false, 0]], [:end_sequence, []], 
[:end_document, [false]], [:end_stream, []]]

 16) Failure:
test_mapping_block(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:66]:
[nil, [true, 1]] not in [[:start_stream, [0]], [:start_document, [nil, [], 
true]], [:start_mapping, [nil, nil, true, 0]], [:scalar, ["key", nil, nil, 
true, false, 0]], [:scalar, ["value", nil, nil, true, false, 0]], 
[:end_mapping, []], [:end_document, [false]], [:end_stream, []]]

 17) Failure:
test_start_document_tag(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:172]:
[nil, [[], [["!yaml!", "tag:yaml.org,2002"]], false]] not in [[:start_stream, 
[0]], [:start_document, [nil, [], true]], [:scalar, ["foo", nil, 
"tag:yaml.org,2002str", false, false, 34]], [:end_document, [false]], 
[:end_stream, []]]

 18) Failure:
test_sequence_start_tag(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:87]:
[nil, ["tag:yaml.org,2002:seq", false, 2]] not in [[:start_stream, [0]], 
[:start_document, [nil, [], true]], [:start_sequence, [nil, 
"tag:yaml.org,2002:seq", false, 1]], [:scalar, ["1", nil, nil, true, false, 
0]], [:scalar, ["2", nil, nil, true, false, 0]], [:end_sequence, []], 
[:end_document, [false]], [:end_stream, []]]

 19) Failure:
test_scalar(Psych::TestParser) 
[test/externals/ruby1.9/psych/test_parser.rb:112]:
[nil, ["foo", true, false, 1]] not in [[:start_stream, [0]], [:start_document, 
[nil, [], true]], [:scalar, ["foo", nil, nil, true, false, 0]], [:end_document, 
[false]], [:end_stream, []]]


  1) Error:
test_libyaml_version(TestPsych):
NoMethodError: undefined method `libyaml_version' for Psych:Module
    test/externals/ruby1.9/psych/test_psych.rb:51:in `test_libyaml_version'
    org/jruby/RubyBasicObject.java:1650:in `send19'
    org/jruby/RubyObject.java:1372:in `send19'

  2) Failure:
test_non_existing_class_on_deserialize(TestPsych) 
[test/externals/ruby1.9/psych/test_psych.rb:18]:
[ArgumentError] exception expected, not
Class: <NameError>
Message: <"uninitialized constant NonExistent">
---Backtrace---
org/jruby/RubyModule.java:2530:in `const_missing'
org/jruby/ext/psych/PsychToRuby.java:61:in `path2class'


  1) Failure:
test_documents(Psych::TestTreeBuilder) 
[test/externals/ruby1.9/psych/test_tree_builder.rb:32]:
Expected false, not true.

  2) Failure:
test_scalar(Psych::TestTreeBuilder) 
[test/externals/ruby1.9/psych/test_tree_builder.rb:59]:
Expected 1, not 0.

  3) Failure:
test_sequence(Psych::TestTreeBuilder) 
[test/externals/ruby1.9/psych/test_tree_builder.rb:44]:
Expected 1, not 0.


  1) Failure:
test_spec_builtin_time(Psych_Unit_Tests) 
[test/externals/ruby1.9/psych/test_yaml.rb:940]:
Expected {"space separated"=>2001-12-14 20:59:43 -0600, "canonical"=>2001-12-15 
02:59:43 UTC, "date (noon UTC)"=>#<Date: 2002-12-14 (4905245/2,0,2299161)>, 
"valid iso8601"=>2001-12-14 20:59:43 -0600}, not {"canonical"=>2001-12-15 
02:59:43 UTC, "valid iso8601"=>2001-12-14 20:59:43 -0600, "space 
separated"=>2001-12-14 20:59:43 -0600, "date (noon UTC)"=>#<Date: 2002-12-14 
(4905245/2,0,2299161)>}.
{noformat}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to