зеркало из https://github.com/github/ruby.git
add tests for [ruby-dev:35726] and [ruby-dev:35709].
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
8db17b30d6
Коммит
45428f2257
|
@ -267,6 +267,12 @@ class TestTranscode < Test::Unit::TestCase
|
|||
"\x80".encode("UTF-32BE", "UTF-8", invalid: :replace))
|
||||
assert_equal("\xFD\xFF\x00\x00".force_encoding("UTF-32LE"),
|
||||
"\x80".encode("UTF-32LE", "UTF-8", invalid: :replace))
|
||||
assert_equal("\uFFFD!",
|
||||
"\x01\x00\x00\x00\x00\x00\x00\x21".encode("utf-8", "utf-32be", :invalid=>:replace), "[ruby-dev:35726]")
|
||||
end
|
||||
|
||||
def test_undef_replace
|
||||
assert_equal("?", "\u20AC".encode("EUC-JP", :undef=>:replace), "[ruby-dev:35709]")
|
||||
end
|
||||
|
||||
def test_shift_jis
|
||||
|
|
Загрузка…
Ссылка в новой задаче