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:
parent
3a427c6199
commit
c3d0206e04
1 changed files with 8 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue