Test files for libxml2 output
[yaz-moved-to-github.git] / test / tstccl.c
index f985890..f1ce440 100644 (file)
@@ -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);
 }