mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
d3b852345a
commit
be3c53d59d
2 changed files with 7 additions and 6 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Wed Jun 17 00:31:30 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* test/ruby/test_argf.rb (TestArgf#test_skip): updated test
|
||||||
|
according to clarified behavior.
|
||||||
|
|
||||||
Tue Jun 16 22:47:37 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Tue Jun 16 22:47:37 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* io.c (fptr_finalize): revert last change. [ruby-dev:38648]
|
* io.c (fptr_finalize): revert last change. [ruby-dev:38648]
|
||||||
|
|
|
@ -658,16 +658,12 @@ class TestArgf < Test::Unit::TestCase
|
||||||
|
|
||||||
def test_skip
|
def test_skip
|
||||||
ruby('-e', <<-SRC, @t1.path, @t2.path, @t3.path) do |f|
|
ruby('-e', <<-SRC, @t1.path, @t2.path, @t3.path) do |f|
|
||||||
begin
|
ARGF.skip
|
||||||
ARGF.skip
|
|
||||||
rescue
|
|
||||||
puts "cannot skip" # ???
|
|
||||||
end
|
|
||||||
puts ARGF.gets
|
puts ARGF.gets
|
||||||
ARGF.skip
|
ARGF.skip
|
||||||
puts ARGF.read
|
puts ARGF.read
|
||||||
SRC
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue