X-Git-Url: http://sru.miketaylor.org.uk/?a=blobdiff_plain;f=test%2Fapi%2Ft16.c;h=8eb991e25d7152663bc7d6348ed45e4fc55a4d73;hb=249111ff0c1796c93f3a044c7afebd770ae0968a;hp=563b267e768ae83cb4bda4add0dbdc6d5bd370ed;hpb=c266dcc8a54593cc8d511074cce43a35729a9e1f;p=idzebra-moved-to-github.git diff --git a/test/api/t16.c b/test/api/t16.c index 563b267..8eb991e 100644 --- a/test/api/t16.c +++ b/test/api/t16.c @@ -1,4 +1,4 @@ -/* $Id: t16.c,v 1.2 2006-11-16 20:44:28 marc Exp $ +/* $Id: t16.c,v 1.4 2006-11-17 14:24:56 marc Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -116,11 +116,17 @@ static void tst(int argc, char **argv) YAZ_CHECK_EQ(fetch_first_compare(zh, "zebra::meta::sysno", VAL_TEXT_XML, zebra_xml_sysno), ZEBRA_OK); - - /* YAZ_CHECK_EQ(fetch_first_compare(zh, "zebra::data::index:title:p", + + YAZ_CHECK_EQ(fetch_first_compare(zh, "zebra::index::title:p", VAL_TEXT_XML, zebra_xml_index_title_p), ZEBRA_OK); - */ + + YAZ_CHECK_EQ(fetch_first_compare(zh, "zebra::nonexistent", + VAL_TEXT_XML, ""), ZEBRA_OK); + + YAZ_CHECK_EQ(fetch_first_compare(zh, "zebra::index::nonexistent", + VAL_TEXT_XML, ""), ZEBRA_OK); + YAZ_CHECK(tl_close_down(zh, zs)); }