summaryrefslogtreecommitdiff
path: root/test/ruby/test_fnmatch.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-22 02:03:49 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-22 02:03:49 +0000
commit3866715356f5016c0836fdd48b94e90fd88bd704 (patch)
tree41a5a3d2f082fc8a1e372ec6e75bcc822073433d /test/ruby/test_fnmatch.rb
parent72f88ebcc16c29f8848174034b4b89ebd0ecb31e (diff)
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_fnmatch.rb')
-rw-r--r--test/ruby/test_fnmatch.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_fnmatch.rb b/test/ruby/test_fnmatch.rb
index ca01a28698..2fb8796ab3 100644
--- a/test/ruby/test_fnmatch.rb
+++ b/test/ruby/test_fnmatch.rb
@@ -108,6 +108,10 @@ class TestFnmatch < Test::Unit::TestCase
feature5422 = '[ruby-core:40037]'
assert_file.for(feature5422).not_fnmatch?( "{.g,t}*", ".gem")
assert_file.for(feature5422).fnmatch?("{.g,t}*", ".gem", File::FNM_EXTGLOB)
+
+ assert_file.fnmatch?("{,.}*", ".gem", File::FNM_EXTGLOB)
+ assert_file.not_fnmatch?("{}*", ".gem", File::FNM_EXTGLOB)
+ assert_file.not_fnmatch?("{.}*", ".gem")
end
def test_unmatched_encoding