update the test case of json_object_update_recursive

This commit is contained in:
allen 2019-10-14 17:32:24 +08:00
parent 00d2d274bc
commit fb602f331b

View File

@ -269,10 +269,8 @@ static void test_recursive_updates()
json_decref(other);
/* check circular reference */
object = json_pack("{s{s{si}}}", "foo", "bar", "baz", 2);
object = json_pack("{s{s{s{si}}}}", "foo", "bar", "baz", "xxx", 2);
other = json_pack("{s{s{si}}}", "foo", "bar", "baz", 2);
json_object_set(json_object_get(json_object_get(object, "foo"), "bar"), "baz",
json_object_get(other, "foo"));
json_object_set(json_object_get(json_object_get(other, "foo"), "bar"), "baz",
json_object_get(other, "foo"));