File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ static void test_parse_string() {
118118 TEST_STRING ("\xC2\xA2" , "\"\\u00A2\"" ); /* Cents sign U+00A2 */
119119 TEST_STRING ("\xE2\x82\xAC" , "\"\\u20AC\"" ); /* Euro sign U+20AC */
120120 TEST_STRING ("\xF0\x9D\x84\x9E" , "\"\\uD834\\uDD1E\"" ); /* G clef sign U+1D11E */
121+ TEST_STRING ("\xF0\x9D\x84\x9E" , "\"\\ud834\\udd1e\"" ); /* G clef sign U+1D11E */
121122}
122123
123124#define TEST_ERROR (error , json )\
@@ -186,7 +187,6 @@ static void test_parse_invalid_unicode_hex() {
186187 TEST_ERROR (LEPT_PARSE_INVALID_UNICODE_HEX , "\"\\u0\"" );
187188 TEST_ERROR (LEPT_PARSE_INVALID_UNICODE_HEX , "\"\\u01\"" );
188189 TEST_ERROR (LEPT_PARSE_INVALID_UNICODE_HEX , "\"\\u012\"" );
189- TEST_ERROR (LEPT_PARSE_INVALID_UNICODE_HEX , "\"\\u01234\"" );
190190 TEST_ERROR (LEPT_PARSE_INVALID_UNICODE_HEX , "\"\\u/000\"" );
191191 TEST_ERROR (LEPT_PARSE_INVALID_UNICODE_HEX , "\"\\uG000\"" );
192192 TEST_ERROR (LEPT_PARSE_INVALID_UNICODE_HEX , "\"\\u0/00\"" );
You can’t perform that action at this time.
0 commit comments