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 problem with generic proximity handling.
[idzebra-moved-to-github.git]
/
test
/
api
/
test_search.c
diff --git
a/test/api/test_search.c
b/test/api/test_search.c
index
57b0a97
..
b42d5ee
100644
(file)
--- a/
test/api/test_search.c
+++ b/
test/api/test_search.c
@@
-1,5
+1,5
@@
/* This file is part of the Zebra server.
/* This file is part of the Zebra server.
- Copyright (C) 1995-2008 Index Data
+ Copyright (C) 1994-2009 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
@@
-49,7
+49,7
@@
const char *myrec[] = {
" </Bounding-Coordinates></Spatial-Domain>\n"
"</gils>\n",
" </Bounding-Coordinates></Spatial-Domain>\n"
"</gils>\n",
- "<gils>\n<title>My title x</title>\n</gils>\n" ,
+ "<gils>\n<title>My title x</title><abstract>a b c c c a y</abstract>\n</gils>\n" ,
"<test_search>\n"
" <date>2107-09-19 00:00:00</date>\n"
"<test_search>\n"
" <date>2107-09-19 00:00:00</date>\n"
@@
-239,6
+239,9
@@
static void tst(int argc, char **argv)
/* exl=1 distance=2 order=0 relation=3 (=), known, unit=word */
YAZ_CHECK(tl_query(zh, "@attr 1=4 @prox 1 2 1 3 k 2 my x", 1));
/* exl=1 distance=2 order=0 relation=3 (=), known, unit=word */
YAZ_CHECK(tl_query(zh, "@attr 1=4 @prox 1 2 1 3 k 2 my x", 1));
+
+ /* exl=0 distance=2 order=1 relation=2 (<=), known, unit=word */
+ YAZ_CHECK(tl_query(zh, "@attr 1=1016 @prox 0 2 1 2 k 2 a y", 1));
/* Non-indexed numeric use, but specified in bib1.att (bug #1142) */
YAZ_CHECK(tl_query_x(zh, "@attr 1=1000 x", 0, 114));
/* Non-indexed numeric use, but specified in bib1.att (bug #1142) */
YAZ_CHECK(tl_query_x(zh, "@attr 1=1000 x", 0, 114));
@@
-352,6
+355,7
@@
TL_MAIN
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab