X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftest_ccl.c;h=e16752ebe8237dc26b8b93c202f0ab3a8c542c8c;hb=8cab0e7a022a9c5ec35cf74ea6b77b9a652a17f9;hp=bb54243e78d28e9bf99c9b9e376d50accdd3b7b2;hpb=c508282c3e52e145f998d0bb85c0ea6b36fe956c;p=yaz-moved-to-github.git diff --git a/test/test_ccl.c b/test/test_ccl.c index bb54243..e16752e 100644 --- a/test/test_ccl.c +++ b/test/test_ccl.c @@ -338,6 +338,24 @@ void tst1(int pass) "@and @attr 5=1 @attr 4=2 @attr 1=1016 a " "@attr 4=2 @attr 1=1016 b? ")); + YAZ_CHECK(tst_ccl_query(bibset, "@and", + "@attr 4=2 @attr 1=1016 \\@and ")); + + YAZ_CHECK(tst_ccl_query(bibset, "a@and", + "@attr 4=2 @attr 1=1016 a@and ")); + + YAZ_CHECK(tst_ccl_query(bibset, "}", + "@attr 4=2 @attr 1=1016 } ")); + + YAZ_CHECK(tst_ccl_query(bibset, "{", + "@attr 4=2 @attr 1=1016 \"{\" ")); + + YAZ_CHECK(tst_ccl_query(bibset, "\"a b c\"", + "@attr 4=1 @attr 1=1016 \"a b c\" ")); + + YAZ_CHECK(tst_ccl_query(bibset, "\"a b c \"", + "@attr 4=1 @attr 1=1016 \"a b c \" ")); + ccl_qual_rm(&bibset); }