mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_dir.rb: added testcase of double slash path.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
c0dba956d1
commit
7bf10e8787
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Tue May 20 20:57:34 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* test/ruby/test_dir.rb (test_glob): added testcase of double
|
||||
slash path.
|
||||
|
||||
Tue May 20 04:58:54 2014 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* ext/socket/extconf.rb: Don't check fields of struct tcp_info if the
|
||||
|
|
|
@ -139,6 +139,7 @@ class TestDir < Test::Unit::TestCase
|
|||
|
||||
assert_equal((?a..?z).step(2).map {|f| File.join(File.join(@root, f), "") }.sort,
|
||||
Dir.glob(File.join(@root, "*/")).sort)
|
||||
assert_equal([File.join(@root, '//a')], Dir.glob(@root + '//a'))
|
||||
|
||||
FileUtils.touch(File.join(@root, "{}"))
|
||||
assert_equal(%w({} a).map{|f| File.join(@root, f) },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue