Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
compatability: floating point formatted differently by default #1626
I can fix your specific test case, but it's a bit more complex making it exactly match MRI for all cases (and fixing yours caused others to break.)
MRI has custom floating-point formatting code, which doesn't match anything in C or Java. We may need to port their C code to Java.
JRuby has similar problems to us https://github.com/jruby/jruby/blob/5602787e537fe025c40abd785926e10cb34690b0/spec/tags/ruby/core/float/to_s_tags.txt.