Add test for remove every kind of formatting.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 30 Apr 2014 05:15:15 +0000 (07:15 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 30 Apr 2014 05:15:15 +0000 (07:15 +0200)
src/test/java/net/pterodactylus/irc/util/MessageCleanerTest.java

index 986cbad..c6b1aec 100644 (file)
@@ -140,4 +140,9 @@ public class MessageCleanerTest {
                assertThat(messageCleaner.clean("Text\u001ditalics", Collections.<Attributes>emptySet()), is("Text\u001ditalics"));
        }
 
+       @Test
+       public void removeEverything() {
+               assertThat(messageCleaner.clean("a\u0002b\u00031,49\u001dd\u001fe\u0016f\u000fg"), is("ab9defg"));
+       }
+
 }