mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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:
parent
8db17b30d6
commit
45428f2257
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue