summaryrefslogtreecommitdiff
path: root/test/ruby/ut_eof.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-06 08:40:30 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-12-06 08:40:30 +0000
commit04f36c2bba797225f0ab8f2bd83de86e1203ac47 (patch)
tree92055143e8d1ef22277637802fff499dd1e06d09 /test/ruby/ut_eof.rb
parent35091fdda5bb3aa55d49c1c6bf20964a7a920bee (diff)
* rubyio.h, intern.h, io.c, file.c, process.c, ext/socket/socket.c,
ext/pty/pty.c, ext/io/wait/wait.c, ext/openssl/ossl_ssl.c: Use own buffering mechanism instead of stdio. * io.c, ext/stringio/stringio.c, test/ruby/ut_eof.rb: EOF flag removed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/ut_eof.rb')
-rw-r--r--test/ruby/ut_eof.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/ruby/ut_eof.rb b/test/ruby/ut_eof.rb
index eff0bddc0b2..bf03771fc3e 100644
--- a/test/ruby/ut_eof.rb
+++ b/test/ruby/ut_eof.rb
@@ -6,8 +6,8 @@ module TestEOF
assert_equal("", f.read(0))
assert_equal("", f.read(0))
assert_equal("", f.read)
- assert_nil(f.read(0))
- assert_nil(f.read(0))
+ assert_equal("", f.read(0))
+ assert_equal("", f.read(0))
}
open_file("") {|f|
assert_nil(f.read(1))
@@ -43,8 +43,8 @@ module TestEOF
assert_equal("" , f.read(0))
assert_equal("" , f.read(0))
assert_equal("", f.read)
- assert_nil(f.read(0))
- assert_nil(f.read(0))
+ assert_equal("", f.read(0))
+ assert_equal("", f.read(0))
}
open_file("a") {|f|
assert_equal("a", f.read(1))
@@ -69,7 +69,7 @@ module TestEOF
}
open_file("a") {|f|
assert_equal("a", f.read)
- assert_nil(f.read(0))
+ assert_equal("", f.read(0))
}
open_file("a") {|f|
s = "x"
@@ -96,7 +96,7 @@ module TestEOF
assert_equal(10, f.pos)
assert_equal("", f.read(0))
assert_equal("", f.read)
- assert_nil(f.read(0))
+ assert_equal("", f.read(0))
assert_equal("", f.read)
}
end