tests:Update misc_tests for cJSON structure change

Signed-off-by: Ajay Bhargav <contact@rickeyworld.info>
This commit is contained in:
Ajay Bhargav 2021-02-23 17:07:43 +05:30 committed by Ajay Bhargav
parent 3ff8920fba
commit e6178a0e23

View File

@ -221,7 +221,7 @@ static void cjson_should_not_parse_to_deeply_nested_jsons(void)
static void cjson_set_number_value_should_set_numbers(void)
{
cJSON number[1] = {{NULL, NULL, NULL, cJSON_Number, NULL, 0, 0, NULL}};
cJSON number[1] = {{NULL, NULL, NULL, cJSON_Number, NULL, 0, 0, 0, NULL}};
cJSON_SetNumberValue(number, 1.5);
TEST_ASSERT_EQUAL(1, number->valueint);
@ -328,7 +328,7 @@ static void cjson_replace_item_via_pointer_should_replace_items(void)
static void cjson_replace_item_in_object_should_preserve_name(void)
{
cJSON root[1] = {{NULL, NULL, NULL, 0, NULL, 0, 0, NULL}};
cJSON root[1] = {{NULL, NULL, NULL, 0, NULL, 0, 0, 0, NULL}};
cJSON *child = NULL;
cJSON *replacement = NULL;
cJSON_bool flag = false;