test_dir.rb: fix arguments order

* test/ruby/test_dir.rb (test_foreach): fix arguments order, the
  expected result should be first.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-03-31 06:32:07 +00:00
parent ffeb6c1b11
commit 0313635cfd

View File

@ -179,7 +179,7 @@ class TestDir < Test::Unit::TestCase
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