X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftest_ccl.c;h=ae413eafc4a641f985809b96507e0ed5afb30b6d;hb=05ce3a6e0133e8d3279c193f9be066198cf0b8b6;hp=9ebebad74abddcd1cb73f71f67ffaa44a8c234a4;hpb=3c1365fc355b4ee90cb841e66cdb9c933f871ed9;p=yaz-moved-to-github.git diff --git a/test/test_ccl.c b/test/test_ccl.c index 9ebebad..ae413ea 100644 --- a/test/test_ccl.c +++ b/test/test_ccl.c @@ -1,9 +1,10 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2010 Index Data + * Copyright (C) 1995-2011 Index Data * See the file LICENSE for details. */ - -/* CCL test */ +#if HAVE_CONFIG_H +#include +#endif #include #include @@ -66,6 +67,13 @@ void tst1(int pass) if (!bibset) return; + if (pass == 1) + { + CCL_bibset nbibset = ccl_qual_dup(bibset); + ccl_qual_rm(&bibset); + bibset = nbibset; + } + switch(pass) { case 0: @@ -165,6 +173,11 @@ void tst1(int pass) } YAZ_CHECK(tst_ccl_query(bibset, "x1", "@attr 4=2 @attr 1=1016 x1 ")); + + YAZ_CHECK(tst_ccl_query(bibset, "k\xc3\xb8" "benhavn", "@attr 4=2 @attr 1=1016 k\xc3\xb8" "benhavn ")); + + YAZ_CHECK(tst_ccl_query(bibset, "k\xf8" "benhavn", "@attr 4=2 @attr 1=1016 ""k\xf8" "benhavn ")); + YAZ_CHECK(tst_ccl_query(bibset, "(((((x1)))))", "@attr 4=2 @attr 1=1016 x1 ")); YAZ_CHECK(tst_ccl_query(bibset, "x1 and x2", "@and "