YAML edge cases
---------------

                 Key: JRUBY-2658
                 URL: http://jira.codehaus.org/browse/JRUBY-2658
             Project: JRuby
          Issue Type: Bug
          Components: Miscellaneous
         Environment: OS X 10.5 using JDK 1.5 and JRuby's trunk
            Reporter: Federico Builes
            Priority: Minor


Some edge cases I've come across while porting some of the examples from 
RbYAML's spec suite to Rubyspec:

YAML.load("---\n") should return nil or false (empty document), but in this 
case 
it's returning "---".

YAML.load("foobar: |= 567") should return something like { "foobar" => "|= 567"}
but with JRuby it throws the following Exception:

ArgumentError: ScannerException while scanning for the next token we had this 
found character |(124) that cannot start any token
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/mspec.rb:124
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/mspec.rb:124:in 
`instance_eval'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/mspec.rb:124:in 
`protect'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/state.rb:46:in 
`each'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/state.rb:46:in 
`protect'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/state.rb:60:in 
`process'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/state.rb:56:in 
`each'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/state.rb:56:in 
`process'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/mspec.rb:28:in 
`describe'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/object.rb:11:in 
`describe'
/Users/federicobuiles/programacion/rbx/./spec/ruby/1.8/library/yaml/load_spec.rb:4
/Users/federicobuiles/programacion/rbx/./spec/ruby/1.8/library/yaml/load_spec.rb:49:in
 `load'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/mspec.rb:49:in 
`files'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/mspec.rb:124:in 
`instance_eval'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/mspec.rb:124:in 
`protect'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/mspec.rb:49:in 
`files'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/mspec.rb:43:in 
`each'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/mspec.rb:43:in 
`files'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/runner/mspec.rb:35:in 
`process'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/commands/mspec-run.rb:76:in
 `run'
/Users/federicobuiles/programacion/rbx/mspec/lib/mspec/utils/script.rb:75:in 
`main'
/Users/federicobuiles/programacion/rbx/mspec/bin/mspec-run:8




-- 
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