diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-09 03:12:25 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-09 03:12:25 +0000 |
| commit | 23d8ace77f84aac13185413835377cfe3fc61b94 (patch) | |
| tree | bad6a328f65bf6e7d1e7c634f7d893dab7c7d262 /test | |
| parent | 9e461b8fb016a8990c297bd72f4d2a635f8073ce (diff) | |
| download | ruby-23d8ace77f84aac13185413835377cfe3fc61b94.tar.gz ruby-23d8ace77f84aac13185413835377cfe3fc61b94.tar.xz ruby-23d8ace77f84aac13185413835377cfe3fc61b94.zip | |
* string.c (tr_find): returns true if no characters to be removed is
specified.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
| -rw-r--r-- | test/ruby/test_m17n.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index 542c3d2b0..28f636fc6 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -489,4 +489,9 @@ class TestM17N < Test::Unit::TestCase assert_equal(s.tr("A", "B"), s) assert_equal(s.tr_s("A", "B"), s) end + + def test_squeeze + s = "\xa3\xb0\xa3\xb1\xa3\xb1\xa3\xb3\xa3\xb4".force_encoding("euc-jp") + assert_equal("\xa3\xb0\xa3\xb1\xa3\xb3\xa3\xb4".force_encoding("euc-jp"), s.squeeze) + end end |
