diff --git a/tests/check_baton.c b/tests/check_baton.c index 78d2ad31..791af75f 100644 --- a/tests/check_baton.c +++ b/tests/check_baton.c @@ -1915,14 +1915,14 @@ START_TEST(test_regression_github_issue137) { for (size_t i = 0; i < 11; i++) { json_t *avu = json_pack("{s:s, s:s, s:s}", - JSON_ATTRIBUTE_KEY, "attr1000", - JSON_VALUE_KEY, "value1000", + JSON_ATTRIBUTE_KEY, "numattr1", + JSON_VALUE_KEY, "10", JSON_OPERATOR_KEY, operators[i]); json_t *query = json_pack("{s:[o]}", JSON_AVUS_KEY, avu); baton_error_t error; json_t *results = search_metadata(conn, query, NULL, flags, &error); - ck_assert_int_eq(error.code, 0); + ck_assert_msg(error.code == 0, operators[i]); json_decref(query); json_decref(results); @@ -1930,14 +1930,14 @@ START_TEST(test_regression_github_issue137) { // Test 'in' here json_t *avu = json_pack("{s:s, s:[s], s:s}", - JSON_ATTRIBUTE_KEY, "attr1000", - JSON_VALUE_KEY, "value1000", + JSON_ATTRIBUTE_KEY, "numattr1", + JSON_VALUE_KEY, "10", JSON_OPERATOR_KEY, "in"); json_t *query = json_pack("{s:[o]}", JSON_AVUS_KEY, avu); baton_error_t error; json_t *results = search_metadata(conn, query, NULL, flags, &error); - ck_assert_int_eq(error.code, 0); + ck_assert_msg(error.code == 0, "in"); json_decref(query); json_decref(results); diff --git a/tests/metadata/meta1.imeta b/tests/metadata/meta1.imeta index c948ee6e..c546b538 100644 --- a/tests/metadata/meta1.imeta +++ b/tests/metadata/meta1.imeta @@ -23,3 +23,7 @@ add -d __IRODS_TEST_ROOT__/r1.txt a y add -d __IRODS_TEST_ROOT__/r1.txt b x add -d __IRODS_TEST_ROOT__/r1.txt b y add -d __IRODS_TEST_ROOT__/r1.txt b z + +add -d __IRODS_TEST_ROOT__/r1.txt numattr1 1 +add -d __IRODS_TEST_ROOT__/r1.txt numattr1 10 +add -d __IRODS_TEST_ROOT__/r1.txt numattr1 100