]> git.feebdaed.xyz Git - 0xmirror/cJSON.git/commitdiff
array's item should be in the list
authorAlanscut <wp_scut@163.com>
Wed, 6 May 2020 09:18:42 +0000 (17:18 +0800)
committerAlanscut <wp_scut@163.com>
Wed, 6 May 2020 09:18:42 +0000 (17:18 +0800)
tests/parse_array.c

index dfaae29be6338ede2751aef9732504c5a64ebe4d..d013f2247c578339a545939ea305cd9405ce15d0 100644 (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);