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:
parent
cd322ae533
commit
c5c0813aa2
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue