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

Add a test for r42162

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-07-25 07:24:12 +00:00
parent 72293b69f8
commit 501c12a6b2

View file

@ -1465,6 +1465,8 @@ class TestM17N < Test::Unit::TestCase
assert_equal(1, a.force_encoding("utf-8").size, '[ruby-core:22437]') assert_equal(1, a.force_encoding("utf-8").size, '[ruby-core:22437]')
b = "".force_encoding("ascii-8bit") << 0xC3.chr << 0xB6.chr b = "".force_encoding("ascii-8bit") << 0xC3.chr << 0xB6.chr
assert_equal(1, b.force_encoding("utf-8").size, '[ruby-core:22437]') assert_equal(1, b.force_encoding("utf-8").size, '[ruby-core:22437]')
assert_raise(TypeError){ ''.force_encoding(nil) }
end end
def test_combchar_codepoint def test_combchar_codepoint