[前][次][番号順一覧][スレッド一覧]

ruby-changes:22576

From: naruse <ko1@a...>
Date: Wed, 15 Feb 2012 18:47:31 +0900 (JST)
Subject: [ruby-changes:22576] naruse:r34625 (trunk): Add test for r34624.

naruse	2012-02-15 18:47:22 +0900 (Wed, 15 Feb 2012)

  New Revision: 34625

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=34625

  Log:
    Add test for r34624.

  Modified files:
    trunk/test/ruby/test_io.rb

Index: test/ruby/test_io.rb
===================================================================
--- test/ruby/test_io.rb	(revision 34624)
+++ test/ruby/test_io.rb	(revision 34625)
@@ -2211,6 +2211,11 @@
         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
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]