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

ruby-changes:42100

From: nobu <ko1@a...>
Date: Fri, 18 Mar 2016 17:01:04 +0900 (JST)
Subject: [ruby-changes:42100] nobu:r54174 (trunk): test_file_exhaustive.rb: strict check test_dirname

nobu	2016-03-18 17:00:57 +0900 (Fri, 18 Mar 2016)

  New Revision: 54174

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54174

  Log:
    test_file_exhaustive.rb: strict check test_dirname
    
    * test/ruby/test_file_exhaustive.rb (test_dirname): assert same as
      the parent directory, not ascendant directories.

  Modified files:
    trunk/test/ruby/test_file_exhaustive.rb
Index: test/ruby/test_file_exhaustive.rb
===================================================================
--- test/ruby/test_file_exhaustive.rb	(revision 54173)
+++ test/ruby/test_file_exhaustive.rb	(revision 54174)
@@ -1015,7 +1015,7 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L1015
   end
 
   def test_dirname
-    assert(regular_file.start_with?(File.dirname(regular_file)))
+    assert_equal(@dir, File.dirname(regular_file))
     assert_equal(".", File.dirname(""))
     assert_incompatible_encoding {|d| File.dirname(d)}
     if File::ALT_SEPARATOR == '\\'

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

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