tests: JSON module tests for additional array parsing
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
d4488b9dad
commit
17385fba2a
1 changed files with 4 additions and 0 deletions
|
@ -875,6 +875,10 @@ static const struct json_test_data json_test_cases[] = {
|
|||
{ "{:}", NULL },
|
||||
{ "[:]", NULL },
|
||||
{ "{ \"\\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 */
|
||||
|
||||
|
|
Loading…
Reference in a new issue