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:
parent
76c02f05a2
commit
207ad0a285
1 changed files with 12 additions and 0 deletions
|
@ -823,6 +823,18 @@ EOT
|
||||||
f.set_encoding("iso-2022-jp")
|
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
|
end
|
||||||
|
|
||||||
def test_write_conversion_fixenc
|
def test_write_conversion_fixenc
|
||||||
|
|
Loading…
Add table
Reference in a new issue