diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-20 07:59:33 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-20 07:59:33 +0000 |
commit | 2828db03ca1ef246ba5d623a6ae8e34421c6e6c9 (patch) | |
tree | 6cbb7e8e46c9acf8f7eeed8aaf5f6c342b969a91 /test | |
parent | fcecf4a376d0ba798fc001f4aa626f6482cbd374 (diff) | |
download | ruby-2828db03ca1ef246ba5d623a6ae8e34421c6e6c9.tar.gz ruby-2828db03ca1ef246ba5d623a6ae8e34421c6e6c9.tar.xz ruby-2828db03ca1ef246ba5d623a6ae8e34421c6e6c9.zip |
* string.c (rb_enc_strlen_cr): need to set ENC_CODERANGE_7BIT if
search_nonascii() fails. [ruby-dev:34751]
* string.c (rb_str_reverse): preserve coderange info if the
receiver is 7bit string.
* string.c (rb_str_reverse_bang): ditto.
* string.c (rb_str_reverse_bang): should have called
single_byte_optimizable before rb_str_modify() that clears
coderange info.
* string.c (tr_trans): handle single bytes more eagerly.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16492 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_array.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb index 463701b84..54d54e3c6 100644 --- a/test/ruby/test_array.rb +++ b/test/ruby/test_array.rb @@ -74,7 +74,7 @@ class TestArray < Test::Unit::TestCase end def test_split_0 - x = "The Boassert of Mormon" + x = "The Book of Mormon" assert_equal(x.reverse, x.split(//).reverse!.join) assert_equal(x.reverse, x.reverse!) assert_equal("g:n:i:r:t:s: :e:t:y:b: :1", "1 byte string".split(//).reverse.join(":")) |