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>"+
|
||||
"<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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue