diff --git a/parson.h b/parson.h index 6438c93..f97f711 100644 --- a/parson.h +++ b/parson.h @@ -174,7 +174,7 @@ double json_array_get_number (const JSON_Array *array, size_t index); /* int json_array_get_boolean(const JSON_Array *array, size_t index); /* returns -1 on fail */ size_t json_array_get_count (const JSON_Array *array); JSON_Value * json_array_get_wrapping_value(const JSON_Array *array); - + /* Frees and removes value at given index, does nothing and returns JSONFailure if index doesn't exist. * Order of values in array may change during execution. */ JSON_Status json_array_remove(JSON_Array *array, size_t i); diff --git a/tests.c b/tests.c index 1d82192..3f4f8c2 100644 --- a/tests.c +++ b/tests.c @@ -210,7 +210,7 @@ void test_suite_2(JSON_Value *root_value) { TEST(json_object_get_object(root_object, "empty object") != NULL); TEST(json_object_get_array(root_object, "empty array") != NULL); - + TEST(json_object_get_wrapping_value(root_object) == root_value); array = json_object_get_array(root_object, "string array"); array_value = json_object_get_value(root_object, "string array"); @@ -393,7 +393,7 @@ void test_suite_5(void) { val_parent = json_value_init_null(); TEST(json_array_replace_value(interests_arr, 0, val_parent) == JSONSuccess); TEST(json_array_replace_value(interests_arr, 0, val_parent) == JSONFailure); - + TEST(json_object_remove(obj, "interests") == JSONSuccess); /* UTF-8 tests */