From: Jouni Malinen Date: Tue, 22 Aug 2017 21:29:52 +0000 (+0300) Subject: tests: JSON module tests for additional array parsing X-Git-Tag: hostap_2_7~1162 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=17385fba2a8a66b40af0d9e277b6308d5e6b50ac;p=thirdparty%2Fhostap.git tests: JSON module tests for additional array parsing Signed-off-by: Jouni Malinen --- diff --git a/src/utils/utils_module_tests.c b/src/utils/utils_module_tests.c index 41438ff04..1b8ff82b4 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 */