X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_ccl.c;fp=test%2Ftest_ccl.c;h=2c1e608de35ae443f6b9aa4faa24aeaab19701fd;hp=5fdb9541b7cb18cfa3b8b60786a3ecca5c48c9a6;hb=4f3f16d519137001a916178e28ad1dff8b986a7d;hpb=de94629a46584eafe114f740ed3000b26dd42ffb diff --git a/test/test_ccl.c b/test/test_ccl.c index 5fdb954..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 "