mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add the test of Dir.glob
when sort: true
is given explicitly
This commit is contained in:
parent
1ce3706c58
commit
f62f020f56
1 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,8 @@ class TestDir < Test::Unit::TestCase
|
|||
Dir.glob([@root, File.join(@root, "*")]))
|
||||
assert_equal([@root] + ("a".."z").map {|f| File.join(@root, f) },
|
||||
Dir.glob([@root, File.join(@root, "*")], sort: false).sort)
|
||||
assert_equal([@root] + ("a".."z").map {|f| File.join(@root, f) },
|
||||
Dir.glob([@root, File.join(@root, "*")], sort: true))
|
||||
assert_raise_with_message(ArgumentError, /nul-separated/) do
|
||||
Dir.glob(@root + "\0\0\0" + File.join(@root, "*"))
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue