summaryrefslogtreecommitdiff
path: root/test/ruby/ut_eof.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-10 08:54:56 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-12-10 08:54:56 +0000
commitba18b0c6cbcfd9afed3684cf667a9503d65d5ca1 (patch)
tree73246f663869fd22c0b0e17e258a8ea1f8d8ed89 /test/ruby/ut_eof.rb
parentf449c04a3648f56a535399d4108b738e36059455 (diff)
* 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
Diffstat (limited to 'test/ruby/ut_eof.rb')
-rw-r--r--test/ruby/ut_eof.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/ruby/ut_eof.rb b/test/ruby/ut_eof.rb
index ffd9ba65ab6..efb9f77d837 100644
--- a/test/ruby/ut_eof.rb
+++ b/test/ruby/ut_eof.rb
@@ -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