Updated facet sort tests.
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 6 Oct 2008 06:50:24 +0000 (08:50 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 6 Oct 2008 06:50:24 +0000 (08:50 +0200)
test/api/test_safari.c
test/api/test_search.c

index 0751368..50d0e12 100644 (file)
@@ -131,9 +131,9 @@ static void tst(int argc, char **argv)
                                   yaz_oid_recsyn_xml,
                                   "<record xmlns=\"http://www.indexdata.com/zebra/\">\n"
                                   "  <facet type=\"s\" index=\"ti\">\n"
-                                  "    <term coccur=\"1\">a b c</term>\n"
-                                  "    <term coccur=\"1\">j k l</term>\n"
-                                  "    <term coccur=\"1\">m n o</term>\n"
+                                  "    <term coccur=\"1\" occur=\"1\">a b c</term>\n"
+                                  "    <term coccur=\"1\" occur=\"1\">j k l</term>\n"
+                                  "    <term coccur=\"1\" occur=\"1\">m n o</term>\n"
                                   "  </facet>\n"
                                   "</record>\n"), ZEBRA_OK);
 
index de6730f..57b0a97 100644 (file)
@@ -77,9 +77,9 @@ static void tst(int argc, char **argv)
     YAZ_CHECK_EQ(tl_fetch_compare(zh, 1, "zebra::facet::title:s",
                                   yaz_oid_recsyn_sutrs,
                                   "facet s title\n"
-                                  "term 1: my title\n"
-                                  "term 1: my title x\n"
-                                  "term 1: my x title\n"), ZEBRA_OK);
+                                  "term 1 1: my title\n"
+                                  "term 1 1: my title x\n"
+                                  "term 1 1: my x title\n"), ZEBRA_OK);
 
     /* trunc right */
     YAZ_CHECK(tl_query(zh, "@attr 1=4 @attr 5=1 titl", 3));