Skip to content

Commit c45d276

Browse files
committed
Add emoji support to SNBT parser test
1 parent fd2a3b6 commit c45d276

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\\ !", true),
80+
new StringToken("string", false), COLON, new StringToken("Hello, \"quoted\" and \\escaped\\ and 😄!", 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\\\\ !",
100+
string: "Hello, \\"quoted\\" and \\\\escaped\\\\ and 😄!",
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)