ruby-changes:46744
From: nobu <ko1@a...>
Date: Tue, 23 May 2017 22:54:15 +0900 (JST)
Subject: [ruby-changes:46744] nobu:r58859 (trunk): test_dir.rb: sort
nobu 2017-05-23 22:54:10 +0900 (Tue, 23 May 2017) New Revision: 58859 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58859 Log: test_dir.rb: sort * test/ruby/test_dir.rb (test_glob_base): sort the globbed result to compare. Modified files: trunk/test/ruby/test_dir.rb Index: test/ruby/test_dir.rb =================================================================== --- test/ruby/test_dir.rb (revision 58858) +++ test/ruby/test_dir.rb (revision 58859) @@ -205,7 +205,7 @@ class TestDir < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_dir.rb#L205 def test_glob_base files = %w[a/foo.c c/bar.c].map {|n| File.join(@root, n)} files.each {|n| File.write(n, "")} - assert_equal(files, Dir.glob("*/*.c", base: @root)) + assert_equal(files, Dir.glob("*/*.c", base: @root).sort) end def assert_entries(entries) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/