mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
use ML ref. for assertion message.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c719cd9b46
commit
68543f3092
22 changed files with 92 additions and 115 deletions
|
@ -19,18 +19,18 @@ class TestIO < Test::Unit::TestCase
|
|||
assert_nil r.gets("")
|
||||
r.close
|
||||
|
||||
# "\377" [ruby-dev:24460]
|
||||
# "\377"
|
||||
r, w = IO.pipe
|
||||
w.print "\377xyz"
|
||||
w.close
|
||||
assert_equal("\377", r.gets("\377"), "[ruby-dev:24460]")
|
||||
r.close
|
||||
|
||||
# "" [ruby-core:03771]
|
||||
# ""
|
||||
r, w = IO.pipe
|
||||
w.print "a\n\nb\n\n"
|
||||
w.close
|
||||
assert_equal "a\n\n", r.gets("")
|
||||
assert_equal "a\n\n", r.gets(""), "[ruby-core:03771]"
|
||||
assert_equal "b\n\n", r.gets("")
|
||||
assert_nil r.gets("")
|
||||
r.close
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue