aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJouni Malinen <jouni@qca.qualcomm.com>2017-08-22 21:29:52 (GMT)
committerJouni Malinen <j@w1.fi>2017-08-22 21:29:52 (GMT)
commit17385fba2a8a66b40af0d9e277b6308d5e6b50ac (patch)
treeb79a2ac35c07c44743693fc0f5f61497e2ebd1a8 /src
parentd4488b9dad7f186f2750748f993ec444f8e9ac8b (diff)
downloadhostap-17385fba2a8a66b40af0d9e277b6308d5e6b50ac.zip
hostap-17385fba2a8a66b40af0d9e277b6308d5e6b50ac.tar.gz
hostap-17385fba2a8a66b40af0d9e277b6308d5e6b50ac.tar.bz2
tests: JSON module tests for additional array parsing
Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
Diffstat (limited to 'src')
-rw-r--r--src/utils/utils_module_tests.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/utils/utils_module_tests.c b/src/utils/utils_module_tests.c
index 41438ff..1b8ff82 100644
--- a/src/utils/utils_module_tests.c
+++ b/src/utils/utils_module_tests.c
@@ -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 */