From cf3f88a59218ef92619fc13de8fcd9aa98e1f925 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 26 Jan 2008 22:50:56 +0000 Subject: add tests. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@15263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_m17n.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/ruby') 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 -- cgit