+ 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\" "));