Merge pull request #472 from Alanscut/parse-array

array's item should be in the list
This commit is contained in:
Alan Wang 2020-05-06 17:34:15 +08:00 committed by GitHub
commit 7db005e028
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);