From c3eb0fd8e207d173a40e9546d2603841f1bdf19d Mon Sep 17 00:00:00 2001 From: Jonathan Buchanan Date: Tue, 21 Jul 2020 16:34:14 -0400 Subject: change behavior of expanding json paths with arrays --- src/json/test_json.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/json/test_json.c') diff --git a/src/json/test_json.c b/src/json/test_json.c index a9947520..83509f8f 100644 --- a/src/json/test_json.c +++ b/src/json/test_json.c @@ -236,26 +236,6 @@ test_contract () GNUNET_assert (3 == tp.results_length); GNUNET_assert (0 == tp.cmp_result); } - { - const char *object_ids[] = { "fruit[0]" }; - const json_t *parents[] = { - json_object_get (c4, - "fruit") - }; - struct TestPath_Closure tp = { - .object_ids = object_ids, - .parents = parents, - .results_length = 0, - .cmp_result = 0 - }; - GNUNET_assert (GNUNET_OK == - TALER_JSON_expand_path (c4, - "$.fruit[0]", - &path_cb, - &tp)); - GNUNET_assert (1 == tp.results_length); - GNUNET_assert (0 == tp.cmp_result); - } json_decref (c4); if (0 != GNUNET_memcmp (&h1, -- cgit v1.2.3