ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject svn commit: r475741 - /ant/core/trunk/src/tests/junit/org/apache/tools/ant/ProjectTest.java
Date Thu, 16 Nov 2006 14:02:54 GMT
Author: jkf
Date: Thu Nov 16 06:02:53 2006
New Revision: 475741

URL: http://svn.apache.org/viewvc?view=rev&rev=475741
Log:
Recent change changed captialization of drive letter. (Drive letter should be case insensitive
anyway)

Modified:
    ant/core/trunk/src/tests/junit/org/apache/tools/ant/ProjectTest.java

Modified: ant/core/trunk/src/tests/junit/org/apache/tools/ant/ProjectTest.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/junit/org/apache/tools/ant/ProjectTest.java?view=diff&rev=475741&r1=475740&r2=475741
==============================================================================
--- ant/core/trunk/src/tests/junit/org/apache/tools/ant/ProjectTest.java (original)
+++ ant/core/trunk/src/tests/junit/org/apache/tools/ant/ProjectTest.java Thu Nov 16 06:02:53
2006
@@ -73,21 +73,22 @@
              * throw in drive letters
              */
             String driveSpec = "C:";
-            assertEquals(driveSpec + "\\",
+            String driveSpecLower = "c:";
+            
+            assertEqualsIgnoreDriveCase(driveSpecLower + "\\",
                          p.resolveFile(driveSpec + "/", null).getPath());
-            assertEquals(driveSpec + "\\",
+            assertEqualsIgnoreDriveCase(driveSpecLower + "\\",
                          p.resolveFile(driveSpec + "\\", null).getPath());
-            String driveSpecLower = "c:";
-            assertEquals(driveSpec + "\\",
+            assertEqualsIgnoreDriveCase(driveSpecLower + "\\",
                          p.resolveFile(driveSpecLower + "/", null).getPath());
-            assertEquals(driveSpec + "\\",
+            assertEqualsIgnoreDriveCase(driveSpecLower + "\\",
                          p.resolveFile(driveSpecLower + "\\", null).getPath());
             /*
              * promised to eliminate consecutive slashes after drive letter.
              */
-            assertEquals(driveSpec + "\\",
+            assertEqualsIgnoreDriveCase(driveSpec + "\\",
                          p.resolveFile(driveSpec + "/////", null).getPath());
-            assertEquals(driveSpec + "\\",
+            assertEqualsIgnoreDriveCase(driveSpec + "\\",
                          p.resolveFile(driveSpec + "\\\\\\\\\\\\", null).getPath());
         } else {
             /*



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message