summaryrefslogtreecommitdiffstats
path: root/test/ruby
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-04 12:29:55 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-05-04 12:29:55 +0000
commit17ce35e6ac88537778b6ca7f328df51ea858743c (patch)
treeeb5c71e80459b661c07af6abea596ee21279535c /test/ruby
parent5c34f89dfb2e051f49d98be460cb31f9a94de807 (diff)
merges r23159 from trunk into ruby_1_9_1.
-- * string.c (rb_str_rstrip_bang): should not sign-expand non-ascii. [ruby-core:23158] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23333 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_string.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index 7fa2ead9b..f6f3dd76b 100644
--- a/test/ruby/test_string.rb
+++ b/test/ruby/test_string.rb
@@ -1139,6 +1139,8 @@ class TestString < Test::Unit::TestCase
def test_strip
assert_equal(S("x"), S(" x ").strip)
assert_equal(S("x"), S(" \n\r\t x \t\r\n\n ").strip)
+ assert_equal(S(""), S("\xa0".force_encoding("iso-8859-1")).strip)
+ assert_equal(S("a"), S("a\xa0".force_encoding("iso-8859-1")).strip)
end
def test_strip!