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

add tests.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-09-12 18:00:08 +00:00
parent 76c02f05a2
commit 207ad0a285

View file

@ -823,6 +823,18 @@ EOT
f.set_encoding("iso-2022-jp")
}
}
assert_nothing_raised {
open("/dev/null", "r") {|f|
f.binmode
f.set_encoding("iso-2022-jp")
}
}
assert_nothing_raised {
open("/dev/null", "rt") {|f|
f.binmode
f.set_encoding("iso-2022-jp")
}
}
end
def test_write_conversion_fixenc