diff options
author | José Valim <jose.valim@gmail.com> | 2010-02-02 12:07:41 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-02-02 12:07:41 +0100 |
commit | ff2d04a9ec43a8df9d63c69236feb4d82e0f59f0 (patch) | |
tree | f7326de92ed365e3079a7fc0d9befb375ac0d473 /activesupport | |
parent | afdf52402ea7cb153be54a342f0e6502a159e327 (diff) | |
download | rails-ff2d04a9ec43a8df9d63c69236feb4d82e0f59f0.tar.gz rails-ff2d04a9ec43a8df9d63c69236feb4d82e0f59f0.tar.bz2 rails-ff2d04a9ec43a8df9d63c69236feb4d82e0f59f0.zip |
Revert "failing tests in multibyte_chars_test.rb fixed". The bug is in Ruby 1.9.1 p376, not in AS test suite.
This reverts commit bf1f70d8776e28f9181faefc4914059b4ad26b99.
Diffstat (limited to 'activesupport')
-rw-r--r-- | activesupport/test/multibyte_chars_test.rb | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/activesupport/test/multibyte_chars_test.rb b/activesupport/test/multibyte_chars_test.rb index 0f68dcfe23..0e489c10e1 100644 --- a/activesupport/test/multibyte_chars_test.rb +++ b/activesupport/test/multibyte_chars_test.rb @@ -301,10 +301,10 @@ class MultibyteCharsUTF8BehaviourTest < Test::Unit::TestCase assert_equal " #{UNICODE_STRING}", @chars.rjust(5) assert_equal " #{UNICODE_STRING}", @chars.rjust(7) assert_equal "---#{UNICODE_STRING}", @chars.rjust(7, '-') - assert_equal "αα#{UNICODE_STRING}", @chars.rjust(7, 'α') + assert_equal "ααα#{UNICODE_STRING}", @chars.rjust(7, 'α') assert_equal "aba#{UNICODE_STRING}", @chars.rjust(7, 'ab') assert_equal "αηα#{UNICODE_STRING}", @chars.rjust(7, 'αη') - assert_equal "αη#{UNICODE_STRING}", @chars.rjust(8, 'αη') + assert_equal "αηαη#{UNICODE_STRING}", @chars.rjust(8, 'αη') end def test_ljust_should_raise_argument_errors_on_bad_arguments @@ -319,10 +319,10 @@ class MultibyteCharsUTF8BehaviourTest < Test::Unit::TestCase assert_equal "#{UNICODE_STRING} ", @chars.ljust(5) assert_equal "#{UNICODE_STRING} ", @chars.ljust(7) assert_equal "#{UNICODE_STRING}---", @chars.ljust(7, '-') - assert_equal "#{UNICODE_STRING}αα", @chars.ljust(7, 'α') + assert_equal "#{UNICODE_STRING}ααα", @chars.ljust(7, 'α') assert_equal "#{UNICODE_STRING}aba", @chars.ljust(7, 'ab') assert_equal "#{UNICODE_STRING}αηα", @chars.ljust(7, 'αη') - assert_equal "#{UNICODE_STRING}αη", @chars.ljust(8, 'αη') + assert_equal "#{UNICODE_STRING}αηαη", @chars.ljust(8, 'αη') end def test_center_should_raise_argument_errors_on_bad_arguments @@ -339,13 +339,13 @@ class MultibyteCharsUTF8BehaviourTest < Test::Unit::TestCase assert_equal " #{UNICODE_STRING} ", @chars.center(7) assert_equal "--#{UNICODE_STRING}--", @chars.center(8, '-') assert_equal "--#{UNICODE_STRING}---", @chars.center(9, '-') - assert_equal "α#{UNICODE_STRING}α", @chars.center(8, 'α') - assert_equal "α#{UNICODE_STRING}αα", @chars.center(9, 'α') - assert_equal "a#{UNICODE_STRING}", @chars.center(7, 'ab') - assert_equal UNICODE_STRING, @chars.center(8, 'ab') - assert_equal "ab#{UNICODE_STRING}ab", @chars.center(12, 'ab') - assert_equal "α#{UNICODE_STRING}", @chars.center(7, 'αη') - assert_equal UNICODE_STRING, @chars.center(8, 'αη') + assert_equal "αα#{UNICODE_STRING}αα", @chars.center(8, 'α') + assert_equal "αα#{UNICODE_STRING}ααα", @chars.center(9, 'α') + assert_equal "a#{UNICODE_STRING}ab", @chars.center(7, 'ab') + assert_equal "ab#{UNICODE_STRING}ab", @chars.center(8, 'ab') + assert_equal "abab#{UNICODE_STRING}abab", @chars.center(12, 'ab') + assert_equal "α#{UNICODE_STRING}αη", @chars.center(7, 'αη') + assert_equal "αη#{UNICODE_STRING}αη", @chars.center(8, 'αη') end def test_lstrip_strips_whitespace_from_the_left_of_the_string |