Test that XML should be able to unescape >0x7f values with leading 0s.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1148531 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2c3fa8366e
commit
b1d97bc2fa
|
@ -300,6 +300,12 @@ public class StringEscapeUtilsTest {
|
|||
"\u00A1", StringEscapeUtils.escapeXml("\u00A1"));
|
||||
assertEquals("XML should be able to unescape >0x7f values",
|
||||
"\u00A0", StringEscapeUtils.unescapeXml(" "));
|
||||
assertEquals("XML should be able to unescape >0x7f values with one leading 0",
|
||||
"\u00A0", StringEscapeUtils.unescapeXml(" "));
|
||||
assertEquals("XML should be able to unescape >0x7f values with two leading 0s",
|
||||
"\u00A0", StringEscapeUtils.unescapeXml(" "));
|
||||
assertEquals("XML should be able to unescape >0x7f values with three leading 0s",
|
||||
"\u00A0", StringEscapeUtils.unescapeXml(" "));
|
||||
|
||||
assertEquals("ain't", StringEscapeUtils.unescapeXml("ain't"));
|
||||
assertEquals("ain't", StringEscapeUtils.escapeXml("ain't"));
|
||||
|
|
Loading…
Reference in New Issue