X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fapi%2Ft5.c;h=0379cb59fc93f8ddea0d59fd792d6d33a9d178b2;hp=25663b4d2c8ea212a02122d1f830f5eaec4a5acf;hb=1922579d92e1a9559d4c3ab4f1cf461f56c83c3b;hpb=6c3a0ff8ce9c94d093efa97730f892ebecac6113 diff --git a/test/api/t5.c b/test/api/t5.c index 25663b4..0379cb5 100644 --- a/test/api/t5.c +++ b/test/api/t5.c @@ -38,10 +38,19 @@ static void tst(int argc, char **argv) /* simple term */ YAZ_CHECK(tl_query(zh, "@attr 1=4 notfound", 0)); YAZ_CHECK(tl_query(zh, "@attr 1=4 title", 3)); + tl_fetch_compare(zh, 1, "zebra::facet::title:w", yaz_oid_recsyn_sutrs, + "term 3 3: my\n" + "term 3 3: title\n" + "term 2 2: x\n"); /* trunc right */ YAZ_CHECK(tl_query(zh, "@attr 1=4 @attr 5=1 titl", 3)); + YAZ_CHECK(tl_query(zh, "@attr 1=4 @attr 5=1 x", 2)); + tl_fetch_compare(zh, 1, "zebra::facet::title:w", yaz_oid_recsyn_sutrs, + "term 2 2: my\n" + "term 2 2: title\n" + "term 2 2: x\n"); /* trunc left */ YAZ_CHECK(tl_query(zh, "@attr 1=4 @attr 5=2 titl", 0));