diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-22 02:03:49 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-10-22 02:03:49 +0000 |
commit | 3866715356f5016c0836fdd48b94e90fd88bd704 (patch) | |
tree | 41a5a3d2f082fc8a1e372ec6e75bcc822073433d /test/ruby/test_dir.rb | |
parent | 72f88ebcc16c29f8848174034b4b89ebd0ecb31e (diff) | |
download | ruby-3866715356f5016c0836fdd48b94e90fd88bd704.tar.gz |
Dir.glob with FNM_EXTGLOB is optimized [Feature #13873]
The order of resulted array is changed in some cases.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60341 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 cead4beb93..f12fd13c58 100644 --- a/test/ruby/test_dir.rb +++ b/test/ruby/test_dir.rb @@ -155,7 +155,7 @@ class TestDir < Test::Unit::TestCase open(File.join(@root, "}}{}"), "wb") {} open(File.join(@root, "}}a"), "wb") {} assert_equal(%w(}}{} }}a).map {|f| File.join(@root, f)}, Dir.glob(File.join(@root, '}}{\{\},a}'))) - assert_equal(%w(}}{} }}a b c).map {|f| File.join(@root, f)}, Dir.glob(File.join(@root, '{\}\}{\{\},a},b,c}'))) + assert_equal(%w(}}{} }}a b c).map {|f| File.join(@root, f)}.sort, Dir.glob(File.join(@root, '{\}\}{\{\},a},b,c}')).sort) end def test_glob_recursive |