1
0
Fork 0
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:
akr 2008-08-08 16:12:03 +00:00
parent 6db9e77e64
commit 94342f89f9

View file

@ -285,6 +285,13 @@ class TestTranscode < Test::Unit::TestCase
assert_equal("\uFFFD!", assert_equal("\uFFFD!",
"\x00\x00\xd8\x00\x00\x00\x00!".encode("utf-8", "utf-32be", :invalid=>:replace)) "\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!", assert_equal("\uFFFD!",
"\xff!".encode("utf-8", "euc-jp", :invalid=>:replace)) "\xff!".encode("utf-8", "euc-jp", :invalid=>:replace))
assert_equal("\uFFFD!", assert_equal("\uFFFD!",