1
0
Fork 0
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:
naruse 2012-02-15 09:47:22 +00:00
parent 7eed0ca619
commit df5867a2a7

View file

@ -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