mirror of
https://github.com/fankes/JSON-java-compat.git
synced 2025-09-08 03:24:27 +08:00
adds test for unicode that has surrogate pairs
This commit is contained in:
@@ -281,6 +281,7 @@ public class XMLTest {
|
||||
"<euroX>A €22€</euroX>"+
|
||||
"<unknown>some text ©</unknown>"+
|
||||
"<known>" " & ' < ></known>"+
|
||||
"<high>𝄢 𐅥</high>" +
|
||||
"</root>";
|
||||
String expectedStr =
|
||||
"{\"root\":{" +
|
||||
@@ -288,7 +289,8 @@ public class XMLTest {
|
||||
"\"euro\":\"A €33\"," +
|
||||
"\"euroX\":\"A €22€\"," +
|
||||
"\"unknown\":\"some text ©\"," +
|
||||
"\"known\":\"\\\" \\\" & ' < >\"" +
|
||||
"\"known\":\"\\\" \\\" & ' < >\"," +
|
||||
"\"high\":\"𝄢 𐅥\""+
|
||||
"}}";
|
||||
|
||||
compareStringToJSONObject(xmlStr, expectedStr);
|
||||
|
Reference in New Issue
Block a user