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

merged r19979 from trunk into ruby_1_9_1.

* test/ruby/test_argf.rb (test_readpartial2): readpartial works just like
      binmode, so input of it should be binmode'ed.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@20029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
yugui 2008-10-29 16:00:59 +00:00
parent c3ffef09bc
commit 0c6ec45001

View file

@ -490,9 +490,11 @@ class TestArgf < Test::Unit::TestCase
t = ""; ARGF.readpartial(1, t); s << t
end
rescue EOFError
$stdout.binmode
puts s
end
SRC
f.binmode
f.puts("foo")
f.puts("bar")
f.puts("baz")