X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Fsort%2Fsort1.c;h=5134ac7328276ae007959f5e06d9248f353e80e3;hb=b571d1a1012dfbe07e4a484ea5425c909bbf7120;hp=1aa46eccc4bb9aa27d07030b7e4acd8170096af0;hpb=4478d785b7769691261005c98063b98a5a5971b3;p=idzebra-moved-to-github.git diff --git a/test/sort/sort1.c b/test/sort/sort1.c index 1aa46ec..5134ac7 100644 --- a/test/sort/sort1.c +++ b/test/sort/sort1.c @@ -1,4 +1,4 @@ -/* $Id: sort1.c,v 1.10 2006-08-14 10:40:30 adam Exp $ +/* $Id: sort1.c,v 1.12 2006-12-05 14:06:30 adam Exp $ Copyright (C) 1995-2006 Index Data ApS @@ -30,7 +30,7 @@ static void tst(int argc, char **argv) char path[256]; int i; - YAZ_CHECK(zebra_select_database(zh, "Default") == ZEBRA_OK); + YAZ_CHECK_EQ(zebra_select_database(zh, "Default"), ZEBRA_OK); zebra_init(zh); @@ -48,18 +48,21 @@ static void tst(int argc, char **argv) ids[2] = 4; ids[3] = 5; YAZ_CHECK(tl_sort(zh, "@or @attr 1=4 computer @attr 7=1 @attr 1=30 0", 4, ids)); + YAZ_CHECK(tl_sort(zh, "@or @attr 1=4 computer @attr 7=1 @attr 1=Date 0", 4, ids)); ids[0] = 5; ids[1] = 4; ids[2] = 2; ids[3] = 3; YAZ_CHECK(tl_sort(zh, "@or @attr 1=4 computer @attr 7=1 @attr 1=1021 0", 4, ids)); + YAZ_CHECK(tl_sort(zh, "@or @attr 1=4 computer @attr 7=1 @attr 1=Bib-Level 0", 4, ids)); ids[0] = 2; ids[1] = 5; ids[2] = 4; ids[3] = 3; YAZ_CHECK(tl_sort(zh, "@or @attr 1=4 computer @attr 7=1 @attr 1=1021 @attr 4=109 0", 4, ids)); + YAZ_CHECK(tl_sort(zh, "@or @attr 1=4 computer @attr 7=1 @attr 1=Bib-Level @attr 4=109 0", 4, ids)); YAZ_CHECK(tl_close_down(zh, zs)); }