Skip to content

Commit

Permalink
Merge pull request kgabis#105 from zolvarga/master
Browse files Browse the repository at this point in the history
Remove trailing spaces
  • Loading branch information
kgabis authored Sep 6, 2018
2 parents b58ac75 + 69684f6 commit 0a18969
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion parson.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions tests.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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 */
Expand Down

0 comments on commit 0a18969

Please sign in to comment.