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=9fe04ecd76aeab45370532f2a620c5959cdf248a;hp=80e75d36ca6f9b9d974e11c4d2fdcc2c2cf6a41f;hb=fb791f9a754adf7b26695fdb1ddd0fdee9bf28f9;hpb=5451f064623589d16bd36460e1df1692d929c3b2 diff --git a/test/api/test_search.c b/test/api/test_search.c index 80e75d3..9fe04ec 100644 --- a/test/api/test_search.c +++ b/test/api/test_search.c @@ -246,6 +246,12 @@ static void tst(int argc, char **argv) /* exl=0 distance=1 order=1 relation=3 (=), known, unit=word */ YAZ_CHECK(tl_query(zh, "@attr 1=1016 @prox 0 1 1 3 k 2 a b", 1)); + + /* exl=0 distance=1 order=1 relation=3 (=), known, unit=word */ + YAZ_CHECK(tl_query(zh, "@attr 1=1016 @prox 0 1 1 3 k 2 c a", 1)); + /* exl=0 distance=1 order=1 relation=2 (<=), known, unit=word */ + YAZ_CHECK(tl_query(zh, "@attr 1=1016 @prox 0 1 1 2 k 2 c a", 1)); + /* 3 term @prox test.. */ YAZ_CHECK(tl_query(zh, "@attr 1=1016 \"a b c\"", 1)); @@ -255,7 +261,7 @@ static void tst(int argc, char **argv) /* left associative (works fine) */ YAZ_CHECK(tl_query(zh, "@attr 1=1016 @prox 0 1 1 2 k 2 @prox 0 1 1 2 k 2 a b c", 1)); - /* exl=0 distance=1 order=1 relation=3 (=), known, unit=word * + /* exl=0 distance=1 order=1 relation=3 (=), known, unit=word */ /* right associative (does not work, so zero hits) */ YAZ_CHECK(tl_query(zh, "@attr 1=1016 @prox 0 1 1 3 k 2 a @prox 0 1 1 3 k 2 b c", 0)); /* left associative (works fine) */