tests: JSON module tests for additional array parsing

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
Jouni Malinen 2017-08-23 00:29:52 +03:00 committed by Jouni Malinen
parent d4488b9dad
commit 17385fba2a

View file

@ -875,6 +875,10 @@ static const struct json_test_data json_test_cases[] = {
{ "{:}", NULL }, { "{:}", NULL },
{ "[:]", NULL }, { "[:]", NULL },
{ "{ \"\\u005c\" : \"\\u005c\" }", "[1:OBJECT:][2:STRING:\\]" }, { "{ \"\\u005c\" : \"\\u005c\" }", "[1:OBJECT:][2:STRING:\\]" },
{ "[{},{}]", "[1:ARRAY:][2:OBJECT:][2:OBJECT:]" },
{ "[1,2]", "[1:ARRAY:][2:NUMBER:][2:NUMBER:]" },
{ "[\"1\",\"2\"]", "[1:ARRAY:][2:STRING:][2:STRING:]" },
{ "[true,false]", "[1:ARRAY:][2:BOOLEAN:][2:BOOLEAN:]" },
}; };
#endif /* CONFIG_JSON */ #endif /* CONFIG_JSON */