From be3c53d59da1306fb97d5b306a71dc3be0e4c091 Mon Sep 17 00:00:00 2001 From: matz Date: Tue, 16 Jun 2009 15:49:41 +0000 Subject: [PATCH] * test/ruby/test_argf.rb (TestArgf#test_skip): updated test according to clarified behavior. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/ruby/test_argf.rb | 8 ++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index f2abfb6e9f..42eda79a09 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Jun 17 00:31:30 2009 Yukihiro Matsumoto + + * test/ruby/test_argf.rb (TestArgf#test_skip): updated test + according to clarified behavior. + Tue Jun 16 22:47:37 2009 Yukihiro Matsumoto * io.c (fptr_finalize): revert last change. [ruby-dev:38648] diff --git a/test/ruby/test_argf.rb b/test/ruby/test_argf.rb index 9e18a80b40..a6c224ba41 100644 --- a/test/ruby/test_argf.rb +++ b/test/ruby/test_argf.rb @@ -658,16 +658,12 @@ class TestArgf < Test::Unit::TestCase def test_skip ruby('-e', <<-SRC, @t1.path, @t2.path, @t3.path) do |f| - begin - ARGF.skip - rescue - puts "cannot skip" # ??? - end + ARGF.skip puts ARGF.gets ARGF.skip puts ARGF.read SRC - assert_equal("cannot skip\n1\n3\n4\n5\n6\n", f.read) + assert_equal("1\n3\n4\n5\n6\n", f.read) end end