[前][次][番号順一覧][スレッド一覧]

ruby-changes:33950

From: hsbt <ko1@a...>
Date: Tue, 20 May 2014 21:02:09 +0900 (JST)
Subject: [ruby-changes:33950] hsbt:r46031 (trunk): * test/ruby/test_dir.rb: added testcase of double slash path.

hsbt	2014-05-20 21:02:03 +0900 (Tue, 20 May 2014)

  New Revision: 46031

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=46031

  Log:
    * test/ruby/test_dir.rb: added testcase of double slash path.

  Modified files:
    trunk/ChangeLog
    trunk/test/ruby/test_dir.rb
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46030)
+++ ChangeLog	(revision 46031)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Tue May 20 20:57:34 2014  SHIBATA Hiroshi  <shibata.hiroshi@g...>
+
+	* test/ruby/test_dir.rb (test_glob): added testcase of double
+	  slash path.
+
 Tue May 20 04:58:54 2014  Tanaka Akira  <akr@f...>
 
 	* ext/socket/extconf.rb: Don't check fields of struct tcp_info if the
Index: test/ruby/test_dir.rb
===================================================================
--- test/ruby/test_dir.rb	(revision 46030)
+++ test/ruby/test_dir.rb	(revision 46031)
@@ -139,6 +139,7 @@ class TestDir < Test::Unit::TestCase https://github.com/ruby/ruby/blob/trunk/test/ruby/test_dir.rb#L139
 
     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) },

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]