mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
test_argf.rb: duplicated test
* test/ruby/test_argf.rb (TestArgf#test_lines): remove duplicated test whose content is test_bytes actually. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38581 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e9381c0559
commit
8a3d7236cd
1 changed files with 0 additions and 10 deletions
|
@ -783,16 +783,6 @@ class TestArgf < Test::Unit::TestCase
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_lines
|
|
||||||
ruby('-W1', '-e', <<-SRC, @t1.path, @t2.path, @t3.path) do |f|
|
|
||||||
$stderr = $stdout
|
|
||||||
print Marshal.dump(ARGF.bytes.to_a)
|
|
||||||
SRC
|
|
||||||
assert_match(/deprecated/, f.gets)
|
|
||||||
assert_equal([49, 10, 50, 10, 51, 10, 52, 10, 53, 10, 54, 10], Marshal.load(f.read))
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_bytes
|
def test_bytes
|
||||||
ruby('-W1', '-e', <<-SRC, @t1.path, @t2.path, @t3.path) do |f|
|
ruby('-W1', '-e', <<-SRC, @t1.path, @t2.path, @t3.path) do |f|
|
||||||
$stderr = $stdout
|
$stderr = $stdout
|
||||||
|
|
Loading…
Add table
Reference in a new issue