mirror of
https://github.com/ethauvin/JSON-java.git
synced 2025-06-17 07:50:52 -07:00
adds test for unicode that has surrogate pairs
This commit is contained in:
parent
2b87f334d0
commit
f6a00e94c7
1 changed files with 3 additions and 1 deletions
|
@ -281,6 +281,7 @@ public class XMLTest {
|
||||||
"<euroX>A €22€</euroX>"+
|
"<euroX>A €22€</euroX>"+
|
||||||
"<unknown>some text ©</unknown>"+
|
"<unknown>some text ©</unknown>"+
|
||||||
"<known>" " & ' < ></known>"+
|
"<known>" " & ' < ></known>"+
|
||||||
|
"<high>𝄢 𐅥</high>" +
|
||||||
"</root>";
|
"</root>";
|
||||||
String expectedStr =
|
String expectedStr =
|
||||||
"{\"root\":{" +
|
"{\"root\":{" +
|
||||||
|
@ -288,7 +289,8 @@ public class XMLTest {
|
||||||
"\"euro\":\"A €33\"," +
|
"\"euro\":\"A €33\"," +
|
||||||
"\"euroX\":\"A €22€\"," +
|
"\"euroX\":\"A €22€\"," +
|
||||||
"\"unknown\":\"some text ©\"," +
|
"\"unknown\":\"some text ©\"," +
|
||||||
"\"known\":\"\\\" \\\" & ' < >\"" +
|
"\"known\":\"\\\" \\\" & ' < >\"," +
|
||||||
|
"\"high\":\"𝄢 𐅥\""+
|
||||||
"}}";
|
"}}";
|
||||||
|
|
||||||
compareStringToJSONObject(xmlStr, expectedStr);
|
compareStringToJSONObject(xmlStr, expectedStr);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue