JsonCharsWriter

This commit is contained in:
redkale
2024-09-16 22:30:25 +08:00
parent fe293c6f25
commit c8ba21dac2
7 changed files with 720 additions and 68 deletions

View File

@@ -35,7 +35,7 @@ public class StringWrapperTest {
{
String emoji =
new String(new byte[] {(byte) 0xF0, (byte) 0x9F, (byte) 0x98, (byte) 0x81}, StandardCharsets.UTF_8);
String val = "{id:'带中文" + emoji + "'}";
String val = "{id:'z带中文" + emoji + "a'}";
StringWrapper wrapper = new StringWrapper(val);
if (!main) Assertions.assertEquals(val, convert.convertTo(wrapper));
if (!main)