mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add test for r34624.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7eed0ca619
commit
df5867a2a7
1 changed files with 5 additions and 0 deletions
|
@ -2211,6 +2211,11 @@ End
|
||||||
f.pos = pos3
|
f.pos = pos3
|
||||||
assert_equal(nil, f.gets)
|
assert_equal(nil, f.gets)
|
||||||
}
|
}
|
||||||
|
File.open("tmp.txt") {|f|
|
||||||
|
f.pos = File.size("tmp.txt")
|
||||||
|
s = "not empty string "
|
||||||
|
assert_equal("", f.read(0,s))
|
||||||
|
}
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue