X-Git-Url: http://git.indexdata.com/?p=idzebra-moved-to-github.git;a=blobdiff_plain;f=test%2Fapi%2Ft17.c;h=20cf3f37a88388c67f9bee0aa2bd82bdbbb2be60;hp=811bc78e562193f9a00bcf7e5b43424c9372c682;hb=896b30853daabb6294afe8b0a2f74fa6d6e397d8;hpb=1b13fcc6c6e0820ce52c340155e84ae69a4b18a8 diff --git a/test/api/t17.c b/test/api/t17.c index 811bc78..20cf3f3 100644 --- a/test/api/t17.c +++ b/test/api/t17.c @@ -1,4 +1,4 @@ -/* $Id: t17.c,v 1.5 2007-11-14 09:51:00 adam Exp $ +/* $Id: t17.c,v 1.7 2007-12-07 14:09:09 adam Exp $ Copyright (C) 1995-2007 Index Data ApS @@ -45,6 +45,15 @@ static void tst(int argc, char **argv) YAZ_CHECK(tl_query(zh, "@attr 1=title computer", 3)); + YAZ_CHECK(tl_query(zh, "@attr 1=title .computer.", 3)); + + YAZ_CHECK(tl_query(zh, "@attr 1=title x", 2)); + + YAZ_CHECK(tl_query(zh, "@attr 1=title my", 3)); + + /* phrase search */ + YAZ_CHECK(tl_query(zh, "@attr 1=title {my computer}", 2)); + YAZ_CHECK(tl_close_down(zh, zs)); #endif }