summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-31 06:32:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-31 06:32:07 +0000
commit0313635cfd86a3d7b6b2f54a56237e0bd6f8c883 (patch)
tree1fbe400cbd288576d1bd785dedd2af56bb9f8207 /test
parentffeb6c1b11c11e38cb865694b5239d7308c73c22 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_dir.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb
index 85247afc17..81e047d385 100644
--- a/test/ruby/test_dir.rb
+++ b/test/ruby/test_dir.rb
@@ -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