Skip to content

Commit 7a58802

Browse files
committed
Whoops - missed some tests that needed reinstating in their original form.
git-svn-id: https://svn.apache.org/repos/asf/jakarta/commons/proper/io/trunk@140617 13f79535-47bb-0310-9956-ffa450edef68
1 parent 7a9d4bb commit 7a58802

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

src/test/org/apache/commons/io/FilenameUtilsTestCase.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
* @author Peter Donald
3131
* @author Matthew Hawthorne
3232
* @author Martin Cooper
33-
* @version $Id: FilenameUtilsTestCase.java,v 1.11 2004/10/24 18:34:23 martinc Exp $
33+
* @version $Id: FilenameUtilsTestCase.java,v 1.12 2004/10/24 18:44:51 martinc Exp $
3434
* @see FilenameUtils
3535
*/
3636
public class FilenameUtilsTestCase extends FileBasedTestCase {
@@ -209,9 +209,9 @@ public void testGetExtension() {
209209
{ "README", "" },
210210
{ "domain.dot.com", "com" },
211211
{ "image.jpeg", "jpeg" },
212-
{ "a.b" + File.separator + "c", "" },
213-
{ "a.b" + File.separator + "c.txt", "txt" },
214-
{ "a" + File.separator + "b" + File.separator + "c", "" },
212+
{ "a.b/c", "" },
213+
{ "a.b/c.txt", "txt" },
214+
{ "a/b/c", "" },
215215
};
216216
for (int i = 0; i < tests.length; i++) {
217217
assertEquals(tests[i][1], FilenameUtils.getExtension(tests[i][0]));
@@ -244,9 +244,9 @@ public void testRemoveExtension() {
244244
{ "README", "README" },
245245
{ "domain.dot.com", "domain.dot" },
246246
{ "image.jpeg", "image" },
247-
{ "a.b" + File.separator + "c", "a.b" + File.separator + "c" },
248-
{ "a.b" + File.separator + "c.txt", "a.b" + File.separator + "c" },
249-
{ "a" + File.separator + "b" + File.separator + "c", "a" + File.separator + "b" + File.separator + "c" },
247+
{ "a.b/c", "a.b/c" },
248+
{ "a.b/c.txt", "a.b/c" },
249+
{ "a/b/c", "a/b/c" },
250250
};
251251

252252
for (int i = 0; i < tests.length; i++) {

0 commit comments

Comments
 (0)