X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftest_ccl.c;h=fc244b6036da75a1d5a8654401c521ca9f9da31d;hp=a78dfdfec240c27d5b2dd09c23e580e72e494a07;hb=b1df5f9013d82510f6250d93623a0126ec19265f;hpb=dd5e6e2ecc4d8d51095059c13ce725d263d99601 diff --git a/test/test_ccl.c b/test/test_ccl.c index a78dfdf..fc244b6 100644 --- a/test/test_ccl.c +++ b/test/test_ccl.c @@ -77,6 +77,7 @@ void tst1(int pass) switch(pass) { case 0: + ccl_qual_fitem(bibset, "term dc.title", "comb"); ccl_qual_fitem(bibset, "u=4 s=pw t=l,r", "ti"); ccl_qual_fitem(bibset, "1=1016 s=al,pw t=r", "term"); ccl_qual_fitem(bibset, "t=x", "reg"); @@ -85,7 +86,6 @@ void tst1(int pass) ccl_qual_fitem(bibset, "r=r,omiteq", "date"); ccl_qual_fitem(bibset, "r=o", "x"); ccl_qual_fitem(bibset, "dc.title", "title"); - ccl_qual_fitem(bibset, "term dc.title", "comb"); ccl_qual_fitem(bibset, "s=ag", "ag"); break; case 1: @@ -260,10 +260,16 @@ void tst1(int pass) "@attr 4=2 @attr 1=1016 b ")); YAZ_CHECK(tst_ccl_query(bibset, "a% (b or dc.title=c)", - "@prox 0 1 0 2 k 2 " - "@attr 4=2 @attr 1=1016 a " - "@or @attr 4=2 @attr 1=1016 b " - "@attr 4=2 @attr 1=1016 @attr 1=/my/title c ")); + "@prox 0 1 0 2 k 2 " + "@attr 4=2 @attr 1=1016 a " + "@or @attr 4=2 @attr 1=1016 b " +#if YAZ_781 + "@or @attr 4=2 @attr 1=/my/title c " + "@attr 4=2 @attr 1=1016 c " +#else + "@attr 4=2 @attr 1=1016 @attr 1=/my/title c " +#endif + )); YAZ_CHECK(tst_ccl_query(bibset, "(a b) % (c)", "@prox 0 1 0 2 k 2 @and "