From 20f4640e981eaa7403c3ab791f61cb0232d597c8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 30 Apr 2014 07:15:15 +0200 Subject: [PATCH] Add test for remove every kind of formatting. --- src/test/java/net/pterodactylus/irc/util/MessageCleanerTest.java | 5 +++++ 1 file changed, 5 insertions(+) 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")); + } + } -- 2.7.4