diff options
author | Martin Fietz <martin.fietz@gmail.com> | 2017-10-08 15:54:12 +0200 |
---|---|---|
committer | Martin Fietz <martin.fietz@gmail.com> | 2017-10-08 15:54:12 +0200 |
commit | 1972c2d44eb09518c1266acdd491e03135e5d351 (patch) | |
tree | b95f2c895a9c5ac3f9b7f07bf699846ce63ac99f /app | |
parent | 531026496117b75aa95394630989dbb2c28d5479 (diff) | |
download | AntennaPod-1972c2d44eb09518c1266acdd491e03135e5d351.zip |
2385 Only allow very limited set of characters in file names
Diffstat (limited to 'app')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/util/FilenameGeneratorTest.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/src/androidTest/java/de/test/antennapod/util/FilenameGeneratorTest.java b/app/src/androidTest/java/de/test/antennapod/util/FilenameGeneratorTest.java index 6d24fa526..13e8b9582 100644 --- a/app/src/androidTest/java/de/test/antennapod/util/FilenameGeneratorTest.java +++ b/app/src/androidTest/java/de/test/antennapod/util/FilenameGeneratorTest.java @@ -34,6 +34,16 @@ public class FilenameGeneratorTest extends AndroidTestCase { createFiles(result); } + public void testFeedTitleContainsApostrophe() { + String result = FileNameGenerator.generateFileName("Feed's Title ..."); + assertEquals("Feeds Title", result); + } + + public void testFeedTitleContainsDash() { + String result = FileNameGenerator.generateFileName("Left - Right"); + assertEquals("Left Right", result); + } + /** * Tests if files can be created. * |