X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftest_ccl.c;h=ea8a63deed1f992162ef49bf7f089fb39f6091d1;hb=9a23e52dbba0f2f6d7ab85361e3c53ac9f222446;hp=9ebebad74abddcd1cb73f71f67ffaa44a8c234a4;hpb=3c1365fc355b4ee90cb841e66cdb9c933f871ed9;p=yaz-moved-to-github.git diff --git a/test/test_ccl.c b/test/test_ccl.c index 9ebebad..ea8a63d 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 @@ -165,6 +166,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 "