hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omal...@apache.org
Subject svn commit: r1079129 - in /hadoop/common/branches/yahoo-merge: CHANGES.txt src/test/core/org/apache/hadoop/fs/TestPath.java
Date Tue, 08 Mar 2011 04:37:59 GMT
Author: omalley
Date: Tue Mar  8 04:37:59 2011
New Revision: 1079129

URL: http://svn.apache.org/viewvc?rev=1079129&view=rev
Log:
commit d2c46c50ab7783c7d63796a149462716026de976
Author: Eli Collins <eli@apache.org>
Date:   Mon Nov 15 04:57:05 2010 +0000

    HADOOP-7034. Add TestPath tests to cover dot, dot dot, and slash normalization. Contributed
by Eli Collins
    
    
    git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1035142 13f79535-47bb-0310-9956-ffa450edef68

Modified:
    hadoop/common/branches/yahoo-merge/CHANGES.txt
    hadoop/common/branches/yahoo-merge/src/test/core/org/apache/hadoop/fs/TestPath.java

Modified: hadoop/common/branches/yahoo-merge/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/common/branches/yahoo-merge/CHANGES.txt?rev=1079129&r1=1079128&r2=1079129&view=diff
==============================================================================
--- hadoop/common/branches/yahoo-merge/CHANGES.txt (original)
+++ hadoop/common/branches/yahoo-merge/CHANGES.txt Tue Mar  8 04:37:59 2011
@@ -176,9 +176,9 @@ Trunk (unreleased changes)
     HADOOP-7024. Create a test method for adding file systems during tests.
     (Kan Zhang via jghoman)
 
-    HADOOP-6903 Make AbstractFSileSystem methods and some FileContext methods to be public
-    (Sanjay Radia via Sanjay Radia)
+    HADOOP-6903. Make AbstractFSileSystem methods and some FileContext methods to be public.
(Sanjay Radia via Sanjay Radia)
 
+    HADOOP-7034. Add TestPath tests to cover dot, dot dot, and slash normalization. (eli)
 
   OPTIMIZATIONS
 

Modified: hadoop/common/branches/yahoo-merge/src/test/core/org/apache/hadoop/fs/TestPath.java
URL: http://svn.apache.org/viewvc/hadoop/common/branches/yahoo-merge/src/test/core/org/apache/hadoop/fs/TestPath.java?rev=1079129&r1=1079128&r2=1079129&view=diff
==============================================================================
--- hadoop/common/branches/yahoo-merge/src/test/core/org/apache/hadoop/fs/TestPath.java (original)
+++ hadoop/common/branches/yahoo-merge/src/test/core/org/apache/hadoop/fs/TestPath.java Tue
Mar  8 04:37:59 2011
@@ -61,6 +61,9 @@ public class TestPath extends TestCase {
   }
 
   public void testNormalize() {
+    assertEquals("", new Path(".").toString());
+    assertEquals("..", new Path("..").toString());
+    assertEquals("/", new Path("/").toString());
     assertEquals("/", new Path("//").toString());
     assertEquals("/", new Path("///").toString());
     assertEquals("//foo/", new Path("//foo/").toString());



Mime
View raw message