From bad4f2f59a654486a16f3b88483a559cb26a0dc4 Mon Sep 17 00:00:00 2001 From: gnaegi <none@none> Date: Tue, 29 Mar 2016 17:51:55 +0200 Subject: [PATCH] OO-1951 add testcase to match documentation --- src/test/java/org/olat/core/util/FormatterTest.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/org/olat/core/util/FormatterTest.java b/src/test/java/org/olat/core/util/FormatterTest.java index c1d8ea5e8a7..4654d39f6ea 100644 --- a/src/test/java/org/olat/core/util/FormatterTest.java +++ b/src/test/java/org/olat/core/util/FormatterTest.java @@ -89,9 +89,11 @@ public class FormatterTest { Assert.assertTrue(Formatter.formatEmoticonsAsImages("+ ").indexOf("<") == 0); Assert.assertTrue(Formatter.formatEmoticonsAsImages("- ").indexOf("<") == 0); - // text after +/- => should NOT render up or down icon + // text after +/- => should NOT render up or down icon, is probably an enumeration Assert.assertTrue(Formatter.formatEmoticonsAsImages("+trallala").indexOf("<") == -1); Assert.assertTrue(Formatter.formatEmoticonsAsImages("-lustig").indexOf("<") == -1); + Assert.assertTrue(Formatter.formatEmoticonsAsImages("+ trallala").indexOf("<") == -1); + Assert.assertTrue(Formatter.formatEmoticonsAsImages("- lustig").indexOf("<") == -1); // text before +/- => should NOT render up or down icon Assert.assertTrue(Formatter.formatEmoticonsAsImages("trallala-").indexOf("<") == -1); -- GitLab