This project is archived and is in readonly mode.
[PATCH] multibyte_chars_test.rb failing tests
-
Prem Sichanugrist (sikachu)
- State changed from new to resolved
Resolved by this commit
http://github.com/rails/rails/commit/bf1f70d8776e28f9181faefc491405...
-
Manfred Stienstra
- State changed from resolved to open
Changing the examples made the tests run, but now they're not correct anymore. Consider the rjust failure and look at it with ASCII characters.
> '1111'.rjust(7, 'a') => "aaa1111"In the test UNICODE_STRING is 4 characters long, so the following assertion is correct.
assert_equal "ααα#{UNICODE_STRING}", @chars.rjust(7, 'α') -
Prem Sichanugrist (sikachu)
So looks like it need to be revert? hmm ..
-
Manfred Stienstra
Yes, please revert, this appears to be a bug in 1.9.1p376. Note that on 1.9 rjust, ljust, and center are directly forwarded to String.
The tests run fine on:
ruby 1.8.7 (2008-08-11 patchlevel 72) [universal-darwin10.0] ruby 1.9.1p243 (2009-07-16 revision 24175) [i386-darwin10.2.0] ruby 1.9.2dev (2010-02-02 trunk 26254) [x86_64-darwin10.2.0] -
Manfred Stienstra
I've also submitted a bug report to the Ruby tracker: http://redmine.ruby-lang.org/issues/show/2705. I would advise against using p376 right now if you're using rjust, ljust, or center in your code.
-
Santiago Pastorino
Yes you're right Manfred, my bad :).
Here is the revert patch. -
Santiago Pastorino
- Assigned user changed from Yehuda Katz (wycats) to José Valim
