From 0313635cfd86a3d7b6b2f54a56237e0bd6f8c883 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 31 Mar 2015 06:32:07 +0000 Subject: 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 --- test/ruby/test_dir.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3