X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftstccl.c;h=f1ce44025fc08fa249f1c4f7c1dfc209987de37b;hp=f985890b07e18b8632f4fdada28f93af24f0d6dd;hb=dc0ea3eaeb38d04f10118bfe62cd8e6c80033ce6;hpb=6deb7e33545e987a7d3e3a090eefcd0cfc71805b diff --git a/test/tstccl.c b/test/tstccl.c index f985890..f1ce440 100644 --- a/test/tstccl.c +++ b/test/tstccl.c @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2009 Index Data + * Copyright (C) 1995-2010 Index Data * See the file LICENSE for details. */ @@ -218,15 +218,17 @@ void tst1(int pass) "@attr 5=1 @attr 4=2 @attr 1=1016 b ")); /* Bug #2895 */ - YAZ_CHECK(tst_ccl_query(bibset, "a? b?", #if 1 + YAZ_CHECK(tst_ccl_query(bibset, "a? b?", /* incorrect. */ "@and @attr 4=2 @attr 1=1016 a? " + "@attr 5=1 @attr 4=2 @attr 1=1016 b ")); #else + YAZ_CHECK(tst_ccl_query(bibset, "a? b?", /* correct */ "@and @attr 5=1 @attr 4=2 @attr 1=1016 a " -#endif "@attr 5=1 @attr 4=2 @attr 1=1016 b ")); +#endif ccl_qual_rm(&bibset); }