1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

add tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-01-26 22:50:56 +00:00
parent 0dfda18777
commit 4ccb160103

View file

@ -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