projects
/
idzebra-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Towards 2.0.12
[idzebra-moved-to-github.git]
/
test
/
api
/
t16.c
diff --git
a/test/api/t16.c
b/test/api/t16.c
index
3070302
..
bf44b57
100644
(file)
--- a/
test/api/t16.c
+++ b/
test/api/t16.c
@@
-1,5
+1,5
@@
-/* $Id: t16.c,v 1.6 2006-11-23 09:03:51 marc Exp $
- Copyright (C) 1995-2006
+/* $Id: t16.c,v 1.9 2007-01-15 15:10:20 adam Exp $
+ Copyright (C) 1995-2007
Index Data ApS
This file is part of the Zebra server.
Index Data ApS
This file is part of the Zebra server.
@@
-86,7
+86,10
@@
static void tst(int argc, char **argv)
zint hits;
ZEBRA_RES res;
const char * zebra_xml_sysno
zint hits;
ZEBRA_RES res;
const char * zebra_xml_sysno
- = "<record xmlns=\"http://www.indexdata.com/zebra/\" sysno=\"2\" set=\"zebra::meta::sysno\"/>\n";
+ = "<record xmlns=\"http://www.indexdata.com/zebra/\" sysno=\"2\"/>\n";
+
+ const char * zebra_xml_meta
+ = "<record xmlns=\"http://www.indexdata.com/zebra/\" sysno=\"2\" base=\"Default\" type=\"grs.sgml\" rank=\"0\" size=\"41\" set=\"zebra::meta\"/>\n";
const char * zebra_xml_index_title_p
= "<record xmlns=\"http://www.indexdata.com/zebra/\" sysno=\"2\" set=\"zebra::index::title:p/\">\n"
const char * zebra_xml_index_title_p
= "<record xmlns=\"http://www.indexdata.com/zebra/\" sysno=\"2\" set=\"zebra::index::title:p/\">\n"
@@
-118,7
+121,7
@@
static void tst(int argc, char **argv)
zebra_xml_sysno), ZEBRA_OK);
YAZ_CHECK_EQ(fetch_first_compare(zh, "zebra::meta", VAL_TEXT_XML,
zebra_xml_sysno), ZEBRA_OK);
YAZ_CHECK_EQ(fetch_first_compare(zh, "zebra::meta", VAL_TEXT_XML,
- "definitely not this"), ZEBRA_FAIL);
+ zebra_xml_meta), ZEBRA_OK);
YAZ_CHECK_EQ(fetch_first_compare(zh, "zebra::index::title:p",
VAL_TEXT_XML,
YAZ_CHECK_EQ(fetch_first_compare(zh, "zebra::index::title:p",
VAL_TEXT_XML,