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

add a test.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18648 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-08-15 16:41:16 +00:00
parent 3a427c6199
commit c3d0206e04

View file

@ -398,5 +398,13 @@ class TestEncodingConverter < Test::Unit::TestCase
assert_equal(true, ec.primitive_output("\u3042", dst))
assert_equal("\e$B!!\e(B???\e$B!\"\e(B\e$B!!\e(B\e$B!\#\e(B\e$B$\"\e(B".force_encoding("ISO-2022-JP"), dst)
assert_raise(Encoding::ConversionUndefined) {
ec.primitive_output("\uFFFD", dst)
}
assert_equal("\e$B!!\e(B???\e$B!\"\e(B\e$B!!\e(B\e$B!\#\e(B\e$B$\"\e(B".force_encoding("ISO-2022-JP"), dst)
end
end