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

ruby-changes:26530

From: nobu <ko1@a...>
Date: Mon, 24 Dec 2012 09:45:49 +0900 (JST)
Subject: [ruby-changes:26530] nobu:r38581 (trunk): test_argf.rb: duplicated test

nobu	2012-12-24 09:45:26 +0900 (Mon, 24 Dec 2012)

  New Revision: 38581

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

  Log:
    test_argf.rb: duplicated test
    
    * test/ruby/test_argf.rb (TestArgf#test_lines): remove duplicated test
      whose content is test_bytes actually.

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

Index: test/ruby/test_argf.rb
===================================================================
--- test/ruby/test_argf.rb	(revision 38580)
+++ test/ruby/test_argf.rb	(revision 38581)
@@ -783,16 +783,6 @@ class TestArgf < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_argf.rb#L783
     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
     ruby('-W1', '-e', <<-SRC, @t1.path, @t2.path, @t3.path) do |f|
       $stderr = $stdout

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

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