aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-20 12:02:03 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-20 12:02:03 +0000
commit7bf10e8787912565c53bb774e7508c2955515326 (patch)
treefed1cd9ed8ce952b58f3dffa735d3d5be4200299
parentc0dba956d1bd798d2ce614dbc8573ab10bb44990 (diff)
downloadruby-7bf10e8787912565c53bb774e7508c2955515326.tar.gz
* 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
-rw-r--r--ChangeLog5
-rw-r--r--test/ruby/test_dir.rb1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index fb31b7e178..d7dc69207b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/test/ruby/test_dir.rb b/test/ruby/test_dir.rb
index 3f2acb22fc..4ce3944cfc 100644
--- a/test/ruby/test_dir.rb
+++ b/test/ruby/test_dir.rb
@@ -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) },