X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fapi%2Ft17.c;fp=test%2Fapi%2Ft17.c;h=1c1cc3c7f22b1d1b5d23a61f98cc116db42f11d9;hp=c20c99bed5c9654fa1e8ef5184832c4cee4eaf12;hb=6c3a0ff8ce9c94d093efa97730f892ebecac6113;hpb=288e73d2917d6e02bbff7e4eec0772d82bc1a0d1 diff --git a/test/api/t17.c b/test/api/t17.c index c20c99b..1c1cc3c 100644 --- a/test/api/t17.c +++ b/test/api/t17.c @@ -101,6 +101,12 @@ static void tst(int argc, char **argv) /* complete-subfield search */ YAZ_CHECK(tl_query(zh, "@attr 1=title @attr 6=2 {my computer}", 1)); YAZ_CHECK(tl_query(zh, "@attr 1=title @attr 6=2 {my}", 0)); + + /* always matches */ + YAZ_CHECK(tl_query(zh, "@attr 1=_ALLRECORDS @attr 2=103 {}", 5)); + YAZ_CHECK(tl_query(zh, "@attr 1=title @attr 2=103 {}", 5)); + YAZ_CHECK(tl_query(zh, "@attr 1=abstract @attr 2=103 {}", 1)); + YAZ_CHECK(tl_query(zh, "@attr 1=abstract @attr 2=103 {does not match}", 1)); /* scan */ { /* word search */