1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_dir.rb: recursive globbing

* test/ruby/test_dir.rb (test_symlink): add an assertion for
  recursive globbing.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-04-01 07:53:16 +00:00
parent cd322ae533
commit c5c0813aa2

View file

@ -231,7 +231,8 @@ class TestDir < Test::Unit::TestCase
assert_equal([*?a..?z, *"symlink-a".."symlink-z"].each_slice(2).map {|f, _| File.join(@root, f + "/") }.sort,
Dir.glob(File.join(@root, "*/")).sort)
Dir.glob(File.join(@root, "**/"))
assert_equal([@root + "/", *[*?a..?z].each_slice(2).map {|f, _| File.join(@root, f + "/") }.sort],
Dir.glob(File.join(@root, "**/")).sort)
end
def test_glob_metachar