X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_ccl.c;h=041efa32eb0eb98d1496de3c116002a802abaa1d;hp=9137c436a8434879afb01ff34f9c176bd26f65e1;hb=240156e69d3a6390699644756e367fffd42891d1;hpb=31596bdcae098f8acea695d44c44ee5f646b4c1f diff --git a/test/test_ccl.c b/test/test_ccl.c index 9137c43..041efa3 100644 --- a/test/test_ccl.c +++ b/test/test_ccl.c @@ -475,6 +475,15 @@ void tst1(int pass) YAZ_CHECK(tst_ccl_query(bibset, "s2=a b?", 0)); YAZ_CHECK(tst_ccl_query(bibset, "s2=a b? c", 0)); + YAZ_CHECK(tst_ccl_query(bibset, "z=(ti=b)", "@attr 4=2 @attr 1=4 b ")); + YAZ_CHECK(tst_ccl_query(bibset, "z=(ti=b?)", + "@attr 5=1 @attr 4=2 @attr 1=4 b ")); + YAZ_CHECK(tst_ccl_query(bibset, "z=(a? and ti=b? and c?)", + "@and @and " + "@attr 5=104 a? " + "@attr 5=1 @attr 4=2 @attr 1=4 b " + "@attr 5=104 c? ")); + ccl_qual_rm(&bibset); }