From 249111ff0c1796c93f3a044c7afebd770ae0968a Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Fri, 17 Nov 2006 14:24:56 +0000 Subject: [PATCH] added tests fror wrong element set names which are not recognized --- test/api/t16.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/test/api/t16.c b/test/api/t16.c index 4ace1e5..8eb991e 100644 --- a/test/api/t16.c +++ b/test/api/t16.c @@ -1,4 +1,4 @@ -/* $Id: t16.c,v 1.3 2006-11-16 21:58:55 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)); } -- 1.7.10.4