From: David ‘Bombe’ Roden Date: Wed, 30 Apr 2014 05:15:15 +0000 (+0200) Subject: Add test for remove every kind of formatting. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=20f4640e981eaa7403c3ab791f61cb0232d597c8;p=xudocci.git Add test for remove every kind of formatting. --- diff --git a/src/test/java/net/pterodactylus/irc/util/MessageCleanerTest.java b/src/test/java/net/pterodactylus/irc/util/MessageCleanerTest.java index 986cbad..c6b1aec 100644 --- a/src/test/java/net/pterodactylus/irc/util/MessageCleanerTest.java +++ b/src/test/java/net/pterodactylus/irc/util/MessageCleanerTest.java @@ -140,4 +140,9 @@ public class MessageCleanerTest { assertThat(messageCleaner.clean("Text\u001ditalics", Collections.emptySet()), is("Text\u001ditalics")); } + @Test + public void removeEverything() { + assertThat(messageCleaner.clean("a\u0002b\u00031,49\u001dd\u001fe\u0016f\u000fg"), is("ab9defg")); + } + }