Skip to content

Commit c7a4a83

Browse files
committed
Add escape sequence support to SNBT parser test
1 parent c45d276 commit c7a4a83

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/test/java/org/glavo/nbt/internal/snbt/SNBTParserTest.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ void testReadNextToken() {
7777
COMMA,
7878
new StringToken("double", false), COLON, new FloatingToken(2.718281828459045, DOUBLE),
7979
COMMA,
80-
new StringToken("string", false), COLON, new StringToken("Hello, \"quoted\" and \\escaped\\ and 😄!", true),
80+
new StringToken("string", false), COLON, new StringToken("Hello, \"quoted\" and \\escaped\\ and 😄! \b\f\n\r \tA\u55b5😄😄", true),
8181
COMMA,
8282
new StringToken("byte_array", false), COLON, ArrayBeginToken.BYTE_ARRAY, new IntegralToken(-128L, INT, false), COMMA, new IntegralToken(0L, INT, false), COMMA, new IntegralToken(127L, INT, false), RIGHT_BRACKET,
8383
COMMA,
@@ -97,7 +97,7 @@ void testReadNextToken() {
9797
long: 9223372036854775807L,
9898
float: 3.1415927f,
9999
double: 2.718281828459045d,
100-
string: "Hello, \\"quoted\\" and \\\\escaped\\\\ and 😄!",
100+
string: "Hello, \\"quoted\\" and \\\\escaped\\\\ and 😄! \\b\\f\\n\\r\\s\\t\\x41\\u55b5\\U0001F604\\N{Smiling Face with Open Mouth and Smiling Eyes}",
101101
byte_array: [B; -128, 0, 127],
102102
int_array: [I; -2147483648, 0, 2147483647],
103103
long_array: [L; -9223372036854775808L, 0L, 9223372036854775807L],

0 commit comments

Comments
 (0)