mirror of
https://github.com/kgabis/parson.git
synced 2024-11-24 06:05:29 +00:00
Remove trailing spaces
This commit is contained in:
parent
b58ac757a8
commit
69684f600c
2
parson.h
2
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);
|
||||
|
4
tests.c
4
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user