ruby-changes:38056
From: nobu <ko1@a...>
Date: Tue, 31 Mar 2015 15:32:14 +0900 (JST)
Subject: [ruby-changes:38056] nobu:r50137 (trunk): test_dir.rb: fix arguments order
nobu 2015-03-31 15:32:07 +0900 (Tue, 31 Mar 2015) New Revision: 50137 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50137 Log: test_dir.rb: fix arguments order * test/ruby/test_dir.rb (test_foreach): fix arguments order, the expected result should be first. Modified files: trunk/test/ruby/test_dir.rb Index: test/ruby/test_dir.rb =================================================================== --- test/ruby/test_dir.rb (revision 50136) +++ test/ruby/test_dir.rb (revision 50137) @@ -179,7 +179,7 @@ class TestDir < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_dir.rb#L179 end def test_foreach - assert_equal(Dir.foreach(@root).to_a.sort, %w(. ..) + (?a..?z).to_a) + assert_equal(%w(. ..) + (?a..?z).to_a, Dir.foreach(@root).to_a.sort) end def test_dir_enc -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/