aboutsummaryrefslogtreecommitdiffstats
path: root/test/openssl/ut_eof.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/openssl/ut_eof.rb')
-rw-r--r--test/openssl/ut_eof.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/openssl/ut_eof.rb b/test/openssl/ut_eof.rb
index 7b18f43a..06aa632a 100644
--- a/test/openssl/ut_eof.rb
+++ b/test/openssl/ut_eof.rb
@@ -8,6 +8,10 @@ module OpenSSL::TestEOF
open_file("") {|f| assert_nil f.getbyte }
end
+ def test_readbyte_eof
+ open_file("") {|f| assert_raise(EOFError) { f.readbyte } }
+ end
+
def test_eof_0
open_file("") {|f|
assert_equal("", f.read(0))