Lines Matching refs:test_tokenizer_one

17 static void test_tokenizer_one(const char *data, ...) {  in test_tokenizer_one()  function
582 test_tokenizer_one("x", -EINVAL); in TEST()
583 test_tokenizer_one("", JSON_TOKEN_END); in TEST()
584 test_tokenizer_one(" ", JSON_TOKEN_END); in TEST()
585 test_tokenizer_one("0", JSON_TOKEN_UNSIGNED, (uint64_t) 0, JSON_TOKEN_END); in TEST()
586 test_tokenizer_one("-0", JSON_TOKEN_INTEGER, (int64_t) 0, JSON_TOKEN_END); in TEST()
587 test_tokenizer_one("1234", JSON_TOKEN_UNSIGNED, (uint64_t) 1234, JSON_TOKEN_END); in TEST()
588 test_tokenizer_one("-1234", JSON_TOKEN_INTEGER, (int64_t) -1234, JSON_TOKEN_END); in TEST()
589test_tokenizer_one("18446744073709551615", JSON_TOKEN_UNSIGNED, (uint64_t) UINT64_MAX, JSON_TOKEN_… in TEST()
590test_tokenizer_one("-9223372036854775808", JSON_TOKEN_INTEGER, (int64_t) INT64_MIN, JSON_TOKEN_END… in TEST()
591test_tokenizer_one("18446744073709551616", JSON_TOKEN_REAL, (double) 18446744073709551616.0L, JSON… in TEST()
592test_tokenizer_one("-9223372036854775809", JSON_TOKEN_REAL, (double) -9223372036854775809.0L, JSON… in TEST()
593 test_tokenizer_one("-1234", JSON_TOKEN_INTEGER, (int64_t) -1234, JSON_TOKEN_END); in TEST()
594 test_tokenizer_one("3.141", JSON_TOKEN_REAL, (double) 3.141, JSON_TOKEN_END); in TEST()
595 test_tokenizer_one("0.0", JSON_TOKEN_REAL, (double) 0.0, JSON_TOKEN_END); in TEST()
596 test_tokenizer_one("7e3", JSON_TOKEN_REAL, (double) 7e3, JSON_TOKEN_END); in TEST()
597 test_tokenizer_one("-7e-3", JSON_TOKEN_REAL, (double) -7e-3, JSON_TOKEN_END); in TEST()
598 test_tokenizer_one("true", JSON_TOKEN_BOOLEAN, true, JSON_TOKEN_END); in TEST()
599 test_tokenizer_one("false", JSON_TOKEN_BOOLEAN, false, JSON_TOKEN_END); in TEST()
600 test_tokenizer_one("null", JSON_TOKEN_NULL, JSON_TOKEN_END); in TEST()
601 test_tokenizer_one("{}", JSON_TOKEN_OBJECT_OPEN, JSON_TOKEN_OBJECT_CLOSE, JSON_TOKEN_END); in TEST()
602test_tokenizer_one("\t {\n} \n", JSON_TOKEN_OBJECT_OPEN, JSON_TOKEN_OBJECT_CLOSE, JSON_TOKEN_END); in TEST()
603 test_tokenizer_one("[]", JSON_TOKEN_ARRAY_OPEN, JSON_TOKEN_ARRAY_CLOSE, JSON_TOKEN_END); in TEST()
604test_tokenizer_one("\t [] \n\n", JSON_TOKEN_ARRAY_OPEN, JSON_TOKEN_ARRAY_CLOSE, JSON_TOKEN_END); in TEST()
605 test_tokenizer_one("\"\"", JSON_TOKEN_STRING, "", JSON_TOKEN_END); in TEST()
606 test_tokenizer_one("\"foo\"", JSON_TOKEN_STRING, "foo", JSON_TOKEN_END); in TEST()
607 test_tokenizer_one("\"foo\\nfoo\"", JSON_TOKEN_STRING, "foo\nfoo", JSON_TOKEN_END); in TEST()
608test_tokenizer_one("{\"foo\" : \"bar\"}", JSON_TOKEN_OBJECT_OPEN, JSON_TOKEN_STRING, "foo", JSON_T… in TEST()
609test_tokenizer_one("{\"foo\" : [true, false]}", JSON_TOKEN_OBJECT_OPEN, JSON_TOKEN_STRING, "foo", … in TEST()
610 test_tokenizer_one("\"\xef\xbf\xbd\"", JSON_TOKEN_STRING, "\xef\xbf\xbd", JSON_TOKEN_END); in TEST()
611 test_tokenizer_one("\"\\ufffd\"", JSON_TOKEN_STRING, "\xef\xbf\xbd", JSON_TOKEN_END); in TEST()
612 test_tokenizer_one("\"\\uf\"", -EINVAL); in TEST()
613 test_tokenizer_one("\"\\ud800a\"", -EINVAL); in TEST()
614 test_tokenizer_one("\"\\udc00\\udc00\"", -EINVAL); in TEST()
615test_tokenizer_one("\"\\ud801\\udc37\"", JSON_TOKEN_STRING, "\xf0\x90\x90\xb7", JSON_TOKEN_END); in TEST()
617test_tokenizer_one("[1, 2, -3]", JSON_TOKEN_ARRAY_OPEN, JSON_TOKEN_UNSIGNED, (uint64_t) 1, JSON_TO… in TEST()