+ /* Truncation */
+ YAZ_CHECK(compare(ct, "@attr 5=1 water", "water*"));
+ YAZ_CHECK(compare(ct, "@attr 5=2 water", 0));
+ YAZ_CHECK(compare(ct, "@attr 5=3 water", 0));
+ YAZ_CHECK(compare(ct, "@attr 5=100 water", "water"));
+ YAZ_CHECK(compare(ct, "@attr 5=101 water", 0));
+ YAZ_CHECK(compare(ct, "@attr 5=104 w#ter", "w?ter"));
+ YAZ_CHECK(compare(ct, "@attr 5=104 w#t?r", "w?t*r"));
+ YAZ_CHECK(compare(ct, "@attr 5=104 w#te?", "w?te*"));
+ YAZ_CHECK(compare(ct, "@attr 5=104 w\\#te?", "w?te*")); /* PQF eats # */
+ YAZ_CHECK(compare(ct, "@attr 5=104 w\\\\#te?", "w#te*"));
+
+ /* reserved characters */
+ YAZ_CHECK(compare(ct, "@attr 5=104 \\\"\\\\\\\\",
+ "\\\"" "\\\\"));
+ YAZ_CHECK(compare(ct, "@attr 5=104 \\\"\\\\\\\\\\\"",
+ "\\\"" "\\\\" "\\\""));
+ YAZ_CHECK(compare(ct, "@attr 5=104 \\\"\\\\", "\\\"\\\\"));
+
+ YAZ_CHECK(compare(ct, "@attr 5=104 \\{:\\}", "\\{\\:\\}"));
+
+ YAZ_CHECK(compare(ct, "@attr 5=104 \\\"\\\\\\\\\\\"",
+ "\\\"" "\\\\" "\\\""));
+