X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;ds=sidebyside;f=test%2Ftest_cql2ccl.c;h=e9ebe38d0bb8b1ed741c4ad43079d925956da8f4;hb=3add35fb1972e98b5f8922bd1c6f1985b4540009;hp=e2f9b5fd76ea1b2e3e8e6a95ae0ac5fdc456da5e;hpb=2dbb55981b7169e8e3957e2ea2ea3f7fd5aea530;p=yaz-moved-to-github.git diff --git a/test/test_cql2ccl.c b/test/test_cql2ccl.c index e2f9b5f..e9ebe38 100644 --- a/test/test_cql2ccl.c +++ b/test/test_cql2ccl.c @@ -36,7 +36,7 @@ static int tst_query_s(const char *cql, const char *expected_ccl, if (!r) { ret = 0; - yaz_log(YLOG_WARN, "cql: diff %s", cql); + yaz_log(YLOG_WARN, "cql: diff: %s", cql); yaz_log(YLOG_WARN, " exp error"); yaz_log(YLOG_WARN, " got ccl %s", wrbuf_cstr(w)); } @@ -137,6 +137,10 @@ static void tst(void) YAZ_CHECK(tst_query("title any x", "title=\"x\"")); YAZ_CHECK(tst_query("title any x y", "title=\"x\" or title=\"y\"")); YAZ_CHECK(tst_query("title any \"x y\"", "title=\"x\" or title=\"y\"")); + + YAZ_CHECK(tst_query("title = \"x y\"", "title=\"x y\"")); + YAZ_CHECK(tst_query("title = x y", "title=\"x\" \"y\"")); + YAZ_CHECK(tst_query("dc.title=encyclopedia prox dinosaurs", "(dc.title=\"encyclopedia\") % (\"dinosaurs\")")); YAZ_CHECK(tst_query("dc.title=encyclopedia prox/distance<=3 dinosaurs", @@ -174,6 +178,8 @@ static void tst(void) "title,,1,0,lowValue")); YAZ_CHECK(tst_query_s("a sortby title/missingHigh", "\"a\"", "title,,1,0,highValue")); + YAZ_CHECK(tst_query_s("a sortby title/sort.missingHigh", "\"a\"", + "title,,1,0,highValue")); YAZ_CHECK(tst_query_s("a sortby title/bogus", "\"a\"", 0)); YAZ_CHECK(tst_query_s("a sortby dc.year dc.author", "\"a\"",