+ YAZ_CHECK(tst_ccl_query(bibset, "@and",
+ "@attr 4=2 @attr 1=1016 \\@and "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "a@and",
+ "@attr 4=2 @attr 1=1016 a@and "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "}",
+ "@attr 4=2 @attr 1=1016 } "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "{",
+ "@attr 4=2 @attr 1=1016 \"{\" "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "\"a b c\"",
+ "@attr 4=1 @attr 1=1016 \"a b c\" "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "\"a b c \"",
+ "@attr 4=1 @attr 1=1016 \"a b c \" "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "ag=a",
+ "@attr 4=2 a "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "ag=a b",
+ "@attr 4=2 \"a b\" "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "ag=a b \"c d\"",
+ "@and @attr 4=2 \"a b\" @attr 4=1 \"c d\" "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "ag=a b \"c\"",
+ "@attr 4=2 \"a b c\" "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "ag=a b \"\"",
+ "@attr 4=2 \"a b \" "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "ag=a \"b c\" d",
+ "@and @and "
+ "@attr 4=2 a @attr 4=1 \"b c\" @attr 4=2 d "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "ag=\"a b c\"",
+ "@attr 4=1 \"a b c\" "));
+
+ YAZ_CHECK(tst_ccl_query(bibset, "ag=\"a b c\" \"d e\"",
+ "@and @attr 4=1 \"a b c\" @attr 4=1 \"d e\" "));