mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
add several tests for UTF-32LE.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
6db9e77e64
commit
94342f89f9
1 changed files with 7 additions and 0 deletions
|
@ -285,6 +285,13 @@ class TestTranscode < Test::Unit::TestCase
|
|||
assert_equal("\uFFFD!",
|
||||
"\x00\x00\xd8\x00\x00\x00\x00!".encode("utf-8", "utf-32be", :invalid=>:replace))
|
||||
|
||||
assert_equal("\uFFFD!",
|
||||
"\x00\x00\x00\xff!\x00\x00\x00".encode("utf-8", "utf-32le", :invalid=>:replace))
|
||||
assert_equal("\uFFFD!",
|
||||
"\x00\x00\xff\x00!\x00\x00\x00".encode("utf-8", "utf-32le", :invalid=>:replace))
|
||||
assert_equal("\uFFFD!",
|
||||
"\x00\xd8\x00\x00!\x00\x00\x00".encode("utf-8", "utf-32le", :invalid=>:replace))
|
||||
|
||||
assert_equal("\uFFFD!",
|
||||
"\xff!".encode("utf-8", "euc-jp", :invalid=>:replace))
|
||||
assert_equal("\uFFFD!",
|
||||
|
|
Loading…
Reference in a new issue