diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-31 06:32:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-31 06:32:07 +0000 |
commit | 0313635cfd86a3d7b6b2f54a56237e0bd6f8c883 (patch) | |
tree | 1fbe400cbd288576d1bd785dedd2af56bb9f8207 /test/ruby/test_dir.rb | |
parent | ffeb6c1b11c11e38cb865694b5239d7308c73c22 (diff) | |
download | ruby-0313635cfd86a3d7b6b2f54a56237e0bd6f8c883.tar.gz |
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/ruby/test_dir.rb')
-rw-r--r-- | test/ruby/test_dir.rb | 2 |
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 |