From df5867a2a7f08af8239b4c7a1eaf961bd9019c11 Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 15 Feb 2012 09:47:22 +0000 Subject: [PATCH] Add test for r34624. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_io.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 83d7fda24b..9fbe321452 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -2211,6 +2211,11 @@ End f.pos = pos3 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