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 | 58b6c4220780a054736e5f826abe8be9a232c5d5 (patch) | |
tree | 315fc2b42bd4f442e243fa9bf3e8bda86a01b3f9 /test/ruby/test_dir.rb | |
parent | 52419a6e1032c4fe8fe6f6f6e2858dcd8fa32ba6 (diff) | |
download | ruby-58b6c4220780a054736e5f826abe8be9a232c5d5.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/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 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) |