You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by GitBox <gi...@apache.org> on 2019/09/28 05:47:30 UTC

[GitHub] [commons-text] Stzx commented on a change in pull request #122: TEXT-172: Failing test case to escape apastrophe

Stzx commented on a change in pull request #122: TEXT-172: Failing test case to escape apastrophe
URL: https://github.com/apache/commons-text/pull/122#discussion_r329298206
 
 

 ##########
 File path: src/test/java/org/apache/commons/text/StringEscapeUtilsTest.java
 ##########
 @@ -319,6 +319,12 @@ public void testUnescapeHtml4() {
         assertEquals("Hello&##;World", StringEscapeUtils.unescapeHtml4("Hello&##;World"));
     }
 
+    @Test
+    public void testEscapeHtml4Apostrophe() {
+        String unescapedChar = StringEscapeUtils.unescapeHtml4 ("&#39;");
+        assertEquals ("&#39;",unescapedChar, StringEscapeUtils.escapeHtml4 (unescapedChar));
 
 Review comment:
   This test must fail.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services