X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fapi%2Ftest_search.c;fp=test%2Fapi%2Ftest_search.c;h=b42d5ee9451af3462d954589952bb409a60e3908;hp=6d568af879dcdf63db136d7c4414ac697f4a4704;hb=3fdd3e7aa5372e1a2a981a5826273f381f74be8e;hpb=aec7e0b196785323777262d3c6ca3e6c770a696d
diff --git a/test/api/test_search.c b/test/api/test_search.c
index 6d568af..b42d5ee 100644
--- a/test/api/test_search.c
+++ b/test/api/test_search.c
@@ -49,7 +49,7 @@ const char *myrec[] = {
" \n"
"\n",
- "\nMy title x\n\n" ,
+ "\nMy title xa b c c c a y\n\n" ,
"\n"
" 2107-09-19 00:00:00\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=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));