diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-26 22:50:56 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-01-26 22:50:56 +0000 |
| commit | cf3f88a59218ef92619fc13de8fcd9aa98e1f925 (patch) | |
| tree | 8807f57bbe2c66eff8407f8a5ee62c97a25c3154 /test/ruby | |
| parent | cfe0d483304e5f45688bbf2c217eb7d3928738f7 (diff) | |
| download | ruby-cf3f88a59218ef92619fc13de8fcd9aa98e1f925.tar.gz ruby-cf3f88a59218ef92619fc13de8fcd9aa98e1f925.tar.xz ruby-cf3f88a59218ef92619fc13de8fcd9aa98e1f925.zip | |
add tests.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_m17n.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb index db6f3b928..4cf79d003 100644 --- a/test/ruby/test_m17n.rb +++ b/test/ruby/test_m17n.rb @@ -897,6 +897,9 @@ class TestM17N < Test::Unit::TestCase } s = e("\xa3\xb0\xa3\xb1\xa3\xb2\xa3\xb3\xa3\xb4") assert_equal(e("\xa3\xb0z\xa3\xb2\xa3\xb3\xa3\xb4"), s.gsub(/\xa3\xb1/e, "z")) + + assert_equal(Encoding::EUC_JP, (a("").gsub(//) { e("") }.encoding)) + assert_equal(Encoding::EUC_JP, (a("a").gsub(/a/) { e("") }.encoding)) end def test_end_with |
