mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
parent
31f2d8990d
commit
b4d5ebcd12
1 changed files with 5 additions and 0 deletions
|
@ -70,6 +70,11 @@ class TestStringIO < Test::Unit::TestCase
|
||||||
assert_nil io.getc
|
assert_nil io.getc
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_pread_eof
|
||||||
|
io = StringIO.new(nil)
|
||||||
|
assert_predicate io, :eof?
|
||||||
|
end
|
||||||
|
|
||||||
def test_pread_null
|
def test_pread_null
|
||||||
io = StringIO.new(nil)
|
io = StringIO.new(nil)
|
||||||
assert_raise(EOFError) { io.pread(1, 0) }
|
assert_raise(EOFError) { io.pread(1, 0) }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue