When a negative Float is YAML::dump'ed, the negative sign is lost. 
-------------------------------------------------------------------

                 Key: JRUBY-1495
                 URL: http://jira.codehaus.org/browse/JRUBY-1495
             Project: JRuby
          Issue Type: Bug
         Environment: trunk rev 4830, Windows XP, JRE 1.6.0_02
            Reporter: Pat Cheng
            Assignee: Thomas E Enebo
            Priority: Critical
         Attachments: test_yaml.rb

  def test_negative_float
    a = -1.0    
    yml = YAML::dump( a ) 
    b = YAML::load( yml )
    assert_equal a, b
  end

b is 1.0 instead of -1.0 as expected.

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