From 7bf10e8787912565c53bb774e7508c2955515326 Mon Sep 17 00:00:00 2001 From: hsbt Date: Tue, 20 May 2014 12:02:03 +0000 Subject: * 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 --- test/ruby/test_dir.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'test/ruby/test_dir.rb') 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) }, -- cgit v1.2.3