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

ruby-changes:28823

From: nobu <ko1@a...>
Date: Tue, 21 May 2013 16:43:50 +0900 (JST)
Subject: [ruby-changes:28823] nobu:r40875 (trunk): test_dir_m17n.rb: sort Dir.entries

nobu	2013-05-21 16:43:40 +0900 (Tue, 21 May 2013)

  New Revision: 40875

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

  Log:
    test_dir_m17n.rb: sort Dir.entries
    
    * test/ruby/test_dir_m17n.rb (test_entries_compose): the order on the
      filesystem does not matter, so sort Dir.entries result to compare.

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

Index: test/ruby/test_dir_m17n.rb
===================================================================
--- test/ruby/test_dir_m17n.rb	(revision 40874)
+++ test/ruby/test_dir_m17n.rb	(revision 40875)
@@ -326,6 +326,7 @@ class TestDir_M17N < Test::Unit::TestCas https://github.com/ruby/ruby/blob/trunk/test/ruby/test_dir_m17n.rb#L326
         orig.map {|o| o.force_encoding(enc) }
       end
       ents = Dir.entries(".", opts).reject {|n| /\A\./ =~ n}
+      ents.sort!
       pp.assert_equal(orig, ents, bug7267)
     }
   end

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

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