mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_io_m17n.rb (test_textmode_paragraph_binaryread):
use opened pipes by with_pipe. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
308be9c8a1
commit
ccbdebf5a9
1 changed files with 0 additions and 2 deletions
|
@ -1794,10 +1794,8 @@ EOT
|
|||
|
||||
def test_textmode_paragraph_binaryread
|
||||
with_pipe("US-ASCII:UTF-8", :universal_newline => true) do |r, w|
|
||||
r, w = IO.pipe
|
||||
w << "a\n\n\ncdefgh".gsub(/\n/, "\r\n")
|
||||
w.close
|
||||
r.set_encoding("US-ASCII:UTF-8", :universal_newline => true)
|
||||
assert_equal("a\n\n", r.gets(""))
|
||||
assert_equal("c", r.getc)
|
||||
assert_equal("defgh", r.readpartial(10))
|
||||
|
|
Loading…
Add table
Reference in a new issue