mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
tests:Update misc_tests for cJSON structure change
Signed-off-by: Ajay Bhargav <contact@rickeyworld.info>
This commit is contained in:
parent
3ff8920fba
commit
e6178a0e23
@ -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)
|
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);
|
cJSON_SetNumberValue(number, 1.5);
|
||||||
TEST_ASSERT_EQUAL(1, number->valueint);
|
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)
|
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 *child = NULL;
|
||||||
cJSON *replacement = NULL;
|
cJSON *replacement = NULL;
|
||||||
cJSON_bool flag = false;
|
cJSON_bool flag = false;
|
||||||
|
Loading…
Reference in New Issue
Block a user