[Bug #6] sprintf() of %f on Windows(MSVCRT)

e$B%A%1%C%He(B #6 e$B$,99?7$5$l$^$7$?!#e(B (by Yusuke E.)

Target version 1.9.1 Release Candidatee$B$+$ie(B1.9.2e$B$KJQ99e(B
ruby -v ruby 1.9.2dev (2010-02-26) [i386-mingw32]e$B$K%;%C%He(B

e$B1sF#$G$9!#e(B

e$B8E$$%A%1%C%H$G$9$,e(B reopen e$B$7$^$9!#e(B

test_to_s(TestFloat) [(snip)/test/ruby/test_float.rb:126]:
<“1.0e+14”> expected but was
<“1.0e+014”>.

mingw32 e$B$G:#$G$b:F8=$9$k$h$&$G$9!#e(B
mingw e$B$G$OD>$C$F$J$+$C$?$N$+e(B regression e$B$J$N$+$OCN$j$^$;$s!#e(B

$ ./ruby test/ruby/test_float.rb
Loaded suite test/ruby/test_float
Started
…F…
Finished in 1.019000 seconds.

  1. Failure:
    test_to_s(TestFloat) [test/ruby/test_float.rb:126]:
    <“1.0e+18”> expected but was
    <“1.0e+018”>.

31 tests, 1120 assertions, 1 failures, 0 errors, 0 skips


Yusuke E. [email protected]

http://redmine.ruby-lang.org/issues/show/6

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs