ICU term lists are handled for search.
[idzebra-moved-to-github.git] / test / api / t17.c
index 811bc78..20cf3f3 100644 (file)
@@ -1,4 +1,4 @@
-/* $Id: t17.c,v 1.5 2007-11-14 09:51:00 adam Exp $
+/* $Id: t17.c,v 1.7 2007-12-07 14:09:09 adam Exp $
    Copyright (C) 1995-2007
    Index Data ApS
 
@@ -45,6 +45,15 @@ static void tst(int argc, char **argv)
 
     YAZ_CHECK(tl_query(zh, "@attr 1=title computer", 3));
  
+    YAZ_CHECK(tl_query(zh, "@attr 1=title .computer.", 3));
+
+    YAZ_CHECK(tl_query(zh, "@attr 1=title x", 2));
+
+    YAZ_CHECK(tl_query(zh, "@attr 1=title my", 3));
+
+    /* phrase search */
+    YAZ_CHECK(tl_query(zh, "@attr 1=title {my computer}", 2));
     YAZ_CHECK(tl_close_down(zh, zs));
 #endif
 }