|
|
@ -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_object(root_object, "empty object") != NULL); |
|
|
|
TEST(json_object_get_array(root_object, "empty array") != NULL); |
|
|
|
TEST(json_object_get_array(root_object, "empty array") != NULL); |
|
|
|
|
|
|
|
|
|
|
|
TEST(json_object_get_wrapping_value(root_object) == root_value); |
|
|
|
TEST(json_object_get_wrapping_value(root_object) == root_value); |
|
|
|
array = json_object_get_array(root_object, "string array"); |
|
|
|
array = json_object_get_array(root_object, "string array"); |
|
|
|
array_value = json_object_get_value(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(); |
|
|
|
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) == JSONSuccess); |
|
|
|
TEST(json_array_replace_value(interests_arr, 0, val_parent) == JSONFailure); |
|
|
|
TEST(json_array_replace_value(interests_arr, 0, val_parent) == JSONFailure); |
|
|
|
|
|
|
|
|
|
|
|
TEST(json_object_remove(obj, "interests") == JSONSuccess); |
|
|
|
TEST(json_object_remove(obj, "interests") == JSONSuccess); |
|
|
|
|
|
|
|
|
|
|
|
/* UTF-8 tests */ |
|
|
|
/* UTF-8 tests */ |
|
|
|