8 #include "json_tokener.h"
10 static void test_case_parse(void);
12 int main(int argc, char **argv)
21 /* make sure only lowercase forms are parsed in strict mode */
22 static void test_case_parse()
24 struct json_tokener *tok;
27 tok = json_tokener_new();
28 json_tokener_set_flags(tok, JSON_TOKENER_STRICT);
30 new_obj = json_tokener_parse_ex(tok, "True", 4);
31 assert(new_obj == NULL);
33 new_obj = json_tokener_parse_ex(tok, "False", 5);
34 assert(new_obj == NULL);
36 new_obj = json_tokener_parse_ex(tok, "Null", 4);
37 assert(new_obj == NULL);
41 json_tokener_free(tok);