X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_ccl.c;h=2c1e608de35ae443f6b9aa4faa24aeaab19701fd;hp=2cfc54585b7829b14fc0cedf0ac9670013ffdef1;hb=323805b6779bcf1befdc7cdd7f10c23b06885e0d;hpb=5921175c5859c16c2ba411999831b8aaf64917b4 diff --git a/test/test_ccl.c b/test/test_ccl.c index 2cfc545..2c1e608 100644 --- a/test/test_ccl.c +++ b/test/test_ccl.c @@ -450,12 +450,20 @@ void tst1(int pass) YAZ_CHECK(tst_ccl_query(bibset, "splitlist=a", "@attr 1=2 a ")); YAZ_CHECK(tst_ccl_query(bibset, "splitlist=a b", "@or " "@and @attr 1=2 a @attr 1=2 b @attr 1=2 \"a b\" ")); - YAZ_CHECK(tst_ccl_query(bibset, "splitlist=a b c", "@or @or @or " - "@and @and @attr 1=2 a @attr 1=2 b @attr 1=2 c " - "@and @attr 1=2 a @attr 1=2 \"b c\" " + + YAZ_CHECK(tst_ccl_query(bibset, "splitlist=a b c", "@or @or " + "@and " + "@attr 1=2 a " + "@or @and @attr 1=2 b @attr 1=2 c " + "@attr 1=2 \"b c\" " "@and @attr 1=2 \"a b\" @attr 1=2 c " "@attr 1=2 \"a b c\" ")); + YAZ_CHECK(tst_ccl_query(bibset, "splitlist=a?", 0)); + YAZ_CHECK(tst_ccl_query(bibset, "splitlist=a b?", 0)); + YAZ_CHECK(tst_ccl_query(bibset, "splitlist=a b c?", 0)); + YAZ_CHECK(tst_ccl_query(bibset, "splitlist=a b c d?", 0)); + YAZ_CHECK(tst_ccl_query(bibset, "s2=a", "@or @attr 1=2 a @attr 1=3 a ")); YAZ_CHECK(tst_ccl_query(bibset, "s2=a b", "@or " @@ -463,6 +471,9 @@ void tst1(int pass) "@or @attr 1=2 b @attr 1=3 b " "@or @attr 1=2 \"a b\" @attr 1=3 \"a b\" ")); + YAZ_CHECK(tst_ccl_query(bibset, "s2=a? b", 0)); + YAZ_CHECK(tst_ccl_query(bibset, "s2=a b?", 0)); + YAZ_CHECK(tst_ccl_query(bibset, "s2=a b? c", 0)); ccl_qual_rm(&bibset); }