X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftest_cql2ccl.c;h=0f2cdd2babd7b7ae8d32b5d1a785899d2a3c8d40;hb=8cab0e7a022a9c5ec35cf74ea6b77b9a652a17f9;hp=6426d87f81337cdeae10c1d5b85d308bb3164670;hpb=f7a3b7f177753fbe82a172efc1b61d59141991ae;p=yaz-moved-to-github.git diff --git a/test/test_cql2ccl.c b/test/test_cql2ccl.c index 6426d87..0f2cdd2 100644 --- a/test/test_cql2ccl.c +++ b/test/test_cql2ccl.c @@ -90,8 +90,15 @@ static void tst(void) YAZ_CHECK(tst_query("title=x or author=y", "(title=\"x\" or author=\"y\")")); + YAZ_CHECK(tst_query("title all \"\"", "title=\"\"")); - YAZ_CHECK(tst_query("title all x", "title=x")); + YAZ_CHECK(tst_query("title all x", "title=\"x\"")); + YAZ_CHECK(tst_query("title all x y", "title=\"x\" and title=\"y\"")); + YAZ_CHECK(tst_query("title all \"x y\"", "title=\"x\" and title=\"y\"")); + + 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\"")); } int main(int argc, char **argv)