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
Fix documentation of of chr's equivalent directive ZEB-672
[idzebra-moved-to-github.git]
/
test
/
api
/
test_sort3.c
diff --git
a/test/api/test_sort3.c
b/test/api/test_sort3.c
index
bf03a3a
..
c45b58f
100644
(file)
--- a/
test/api/test_sort3.c
+++ b/
test/api/test_sort3.c
@@
-1,5
+1,5
@@
/* This file is part of the Zebra server.
/* This file is part of the Zebra server.
- Copyright (C) 1994-2010 Index Data
+ Copyright (C) Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
@@
-17,10
+17,13
@@
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
*/
-/** \file
+/** \file
\brief sort using various sortindex types
*/
\brief sort using various sortindex types
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <yaz/test.h>
#include "testlib.h"
#include <yaz/test.h>
#include "testlib.h"
@@
-32,7
+35,7
@@
const char *myrec[] = {
"</gils>\n",
/* 3 */
"</gils>\n",
/* 3 */
- "<gils>\n"
+ "<gils>\n"
" <title>My x title</title>\n"
" <title>B</title>\n"
"</gils>\n",
" <title>My x title</title>\n"
" <title>B</title>\n"
"</gils>\n",
@@
-43,7
+46,7
@@
const char *myrec[] = {
" <title>A</title>\n"
"</gils>\n" ,
0} ;
" <title>A</title>\n"
"</gils>\n" ,
0} ;
-
+
static void tst_sortindex(int argc, char **argv, const char *type)
{
zint ids[5];
static void tst_sortindex(int argc, char **argv, const char *type)
{
zint ids[5];
@@
-55,7
+58,7
@@
static void tst_sortindex(int argc, char **argv, const char *type)
res_set(res, "sortindex", type);
zh = zebra_open(zs, res);
res_set(res, "sortindex", type);
zh = zebra_open(zs, res);
-
+
YAZ_CHECK(tl_init_data(zh, myrec));
if (strcmp(type, "m"))
YAZ_CHECK(tl_init_data(zh, myrec));
if (strcmp(type, "m"))