| 49 | } |
| 50 | |
| 51 | static int test_stream_input(void) |
| 52 | { |
| 53 | ACL_JSON *json = acl_json_alloc(); |
| 54 | int ok; |
| 55 | |
| 56 | acl_json_update(json, "{\"split\":\"\\u4F"); |
| 57 | acl_json_update(json, "60\\u597"); |
| 58 | acl_json_update(json, "D\",\"emoji\":\"\\uD83D"); |
| 59 | acl_json_update(json, "\\uDE00\"}"); |
| 60 | |
| 61 | ok = acl_json_finish(json) |
| 62 | && check_tag_value(json, "split", UTF8_NI_HAO) |
| 63 | && check_tag_value(json, "emoji", UTF8_EMOJI); |
| 64 | |
| 65 | acl_json_free(json); |
| 66 | return ok; |
| 67 | } |
| 68 | |
| 69 | static int test_invalid_hex_input(void) |
| 70 | { |
no test coverage detected
searching dependent graphs…