diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-23 13:54:10 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-05-23 13:54:10 +0000 |
commit | 42985a05869a074306b7b0f7370b3db0c587dde4 (patch) | |
tree | 315fc2b42bd4f442e243fa9bf3e8bda86a01b3f9 /test | |
parent | ff9928cb1a7adc0ea2bea81dbe43791b980a8eda (diff) | |
download | ruby-42985a05869a074306b7b0f7370b3db0c587dde4.tar.gz |
test_dir.rb: sort
* test/ruby/test_dir.rb (test_glob_base): sort the globbed result
to compare.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58859 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 d3fd1be2ec..01b7aa02fc 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -205,7 +205,7 @@ class TestDir < Test::Unit::TestCase def test_glob_base files = %w[a/foo.c c/bar.c].map {|n| File.join(@root, n)} files.each {|n| File.write(n, "")} - assert_equal(files, Dir.glob("*/*.c", base: @root)) + assert_equal(files, Dir.glob("*/*.c", base: @root).sort) end def assert_entries(entries) |