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

ruby-changes:46763

From: nobu <ko1@a...>
Date: Thu, 25 May 2017 11:50:25 +0900 (JST)
Subject: [ruby-changes:46763] nobu:r58878 (trunk): test_dir.rb: test Dir.entries

nobu	2017-05-25 11:50:20 +0900 (Thu, 25 May 2017)

  New Revision: 58878

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58878

  Log:
    test_dir.rb: test Dir.entries
    
    * test/ruby/test_dir.rb (test_entries): test class singleton
      method Dir.entries too.

  Modified files:
    trunk/test/ruby/test_dir.rb
Index: test/ruby/test_dir.rb
===================================================================
--- test/ruby/test_dir.rb	(revision 58877)
+++ test/ruby/test_dir.rb	(revision 58878)
@@ -221,6 +221,7 @@ class TestDir < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_dir.rb#L221
 
   def test_entries
     assert_entries(Dir.open(@root) {|dir| dir.entries})
+    assert_entries(Dir.entries(@root).to_a)
   end
 
   def test_foreach

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

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