mirror of
https://github.com/ruby/ruby.git
synced 2025-09-20 19:14:00 +02:00
* ext/stringio/stringio.c (strio_read): do not set EOF flag when
requested length is zero. [ruby-dev:22214] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@5160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
f449c04a36
commit
ba18b0c6cb
3 changed files with 14 additions and 5 deletions
|
@ -64,7 +64,10 @@ module TestEOF
|
|||
|
||||
def test_eof_0_seek
|
||||
open_file_seek("", 10) {|f|
|
||||
assert_equal(10, f.pos)
|
||||
assert_equal("", f.read(0))
|
||||
assert_equal("", f.read)
|
||||
assert_equal(nil, f.read(0))
|
||||
assert_equal(nil, f.read)
|
||||
}
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue