mirror of
https://github.com/DaveGamble/cJSON.git
synced 2024-12-26 04:31:04 +08:00
Merge pull request #472 from Alanscut/parse-array
array's item should be in the list
This commit is contained in:
commit
7db005e028
@ -90,7 +90,8 @@ static void parse_array_should_parse_arrays_with_one_element(void)
|
||||
|
||||
assert_parse_array("[[]]");
|
||||
assert_has_child(item);
|
||||
assert_is_array(item->child);
|
||||
TEST_ASSERT_NOT_NULL(item->child);
|
||||
assert_has_type(item->child, cJSON_Array);
|
||||
assert_has_no_child(item->child);
|
||||
reset(item);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user