X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_cql2ccl.c;h=b52ad145b9117fe280c49b6c9803beec0cdfe005;hp=06a1c6171d7bd88c2bb64f97a7ecd69f7b46ae4d;hb=13ac77e545b5d7e8b5ecb053d0aaa321ce12e487;hpb=9084e20f4c5ffad9cfea2087396206b75a3a6654 diff --git a/test/test_cql2ccl.c b/test/test_cql2ccl.c index 06a1c61..b52ad14 100644 --- a/test/test_cql2ccl.c +++ b/test/test_cql2ccl.c @@ -110,7 +110,8 @@ static void tst(void) YAZ_CHECK(tst_query("\\*", "\"*\"")); YAZ_CHECK(tst_query("\"\\*\"", "\"*\"")); - YAZ_CHECK(tst_query("\"a b\"", "\"a b\"")); + YAZ_CHECK(tst_query("a b", "\"a\" \"b\"")); + YAZ_CHECK(tst_query("ab bc", "\"ab\" \"bc\"")); YAZ_CHECK(tst_query("\\\\", "\"\\\\\"")); YAZ_CHECK(tst_query("\\\"", "\"\\\"\"")); @@ -130,12 +131,17 @@ static void tst(void) YAZ_CHECK(tst_query("title all \"\"", "title=\"\"")); 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\"")); YAZ_CHECK(tst_query("title = \"x y\"", "title=\"x y\"")); + YAZ_CHECK(tst_query("title = x y", "title=\"x\" \"y\"")); + + YAZ_CHECK(tst_query("title = x y z", "title=\"x\" \"y\" \"z\"")); YAZ_CHECK(tst_query("dc.title=encyclopedia prox dinosaurs", "(dc.title=\"encyclopedia\") % (\"dinosaurs\")"));