diff options
-rw-r--r-- | tests/src/de/danoeh/antennapod/test/FilenameGeneratorTest.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/src/de/danoeh/antennapod/test/FilenameGeneratorTest.java b/tests/src/de/danoeh/antennapod/test/FilenameGeneratorTest.java index 90b1224a7..5e46b6748 100644 --- a/tests/src/de/danoeh/antennapod/test/FilenameGeneratorTest.java +++ b/tests/src/de/danoeh/antennapod/test/FilenameGeneratorTest.java @@ -10,6 +10,7 @@ public class FilenameGeneratorTest extends AndroidTestCase { private static final String VALID1 = "abc abc"; private static final String INVALID1 = "ab/c: <abc"; + private static final String INVALID2 = "abc abc "; public void testGenerateFileName() throws IOException { String result = FileNameGenerator.generateFileName(VALID1); @@ -22,6 +23,12 @@ public class FilenameGeneratorTest extends AndroidTestCase { assertEquals(result, VALID1); createFiles(result); } + + public void testGenerateFileName2() throws IOException { + String result = FileNameGenerator.generateFileName(INVALID2); + assertEquals(result, VALID1); + createFiles(result); + } /** * Tests if files can be created. |