summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-26 22:50:56 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-01-26 22:50:56 +0000
commit4ccb16010378760bebf292a38b6bf69a54098d7b (patch)
tree8807f57bbe2c66eff8407f8a5ee62c97a25c3154 /test
parent0dfda18777f55d5faf12ecbf17bf6db624e1a390 (diff)
add tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_m17n.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/test_m17n.rb b/test/ruby/test_m17n.rb
index db6f3b928d..4cf79d0037 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