X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftstxmlquery.c;h=c79f285a2a4dbb9d0fa0a2682e06a699ba953816;hp=8f0e13b406e46c5c68a40ce652f2e346dd4b8e5e;hb=ba1eb985bfd53a8cfbfd251e65688921dba56236;hpb=fc6d778b923000b5c6ad8e108b0b184178a9d33f diff --git a/test/tstxmlquery.c b/test/tstxmlquery.c index 8f0e13b..c79f285 100644 --- a/test/tstxmlquery.c +++ b/test/tstxmlquery.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2005, Index Data ApS * See the file LICENSE for details. * - * $Id: tstxmlquery.c,v 1.11 2006-07-06 10:17:55 adam Exp $ + * $Id: tstxmlquery.c,v 1.13 2006-10-04 16:59:34 mike Exp $ */ #include @@ -104,7 +104,7 @@ enum pqf2xml_status pqf2xml_text(const char *pqf, const char *expect_xml, return status; } -static void tst() +static void tst(void) { YAZ_CHECK_EQ(pqf2xml_text("@attr 1=4 bad query", "", 0), PQF_FAILED); #if YAZ_HAVE_XML2 @@ -115,7 +115,7 @@ static void tst() "" "computer" "\n", - "RPN: @attrset Bib-1 @attr 1=4 computer" + "RPN @attrset Bib-1 @attr 1=4 computer" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -126,7 +126,7 @@ static void tst() "" "computer" "\n", - "RPN: @attrset Bib-1 @attr \"1=title\" @attr 2=1 computer" + "RPN @attrset Bib-1 @attr \"1=title\" @attr 2=1 computer" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -137,7 +137,7 @@ static void tst() "" "computer" "\n", - "RPN: @attrset Bib-1 @attr Exp-1 1=1 @attr 2=1 computer" + "RPN @attrset Bib-1 @attr Exp-1 1=1 @attr 2=1 computer" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -148,7 +148,7 @@ static void tst() "a" "b" "\n", - "RPN: @attrset Bib-1 @and a b" + "RPN @attrset Bib-1 @and a b" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -161,7 +161,7 @@ static void tst() "b" "c" "\n", - "RPN: @attrset Bib-1 @or @and a b c" + "RPN @attrset Bib-1 @or @and a b c" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -169,7 +169,7 @@ static void tst() "\n" "" "abe\n", - "RPN: @attrset Bib-1 @set abe" + "RPN @attrset Bib-1 @set abe" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -186,7 +186,7 @@ static void tst() "a" "b" "\n", - "RPN: @attrset Bib-1 @prox 0 3 1 2 k 2 a b" + "RPN @attrset Bib-1 @prox 0 3 1 2 k 2 a b" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -196,7 +196,7 @@ static void tst() "" "32" "\n", - "RPN: @attrset Bib-1 @term numeric 32" + "RPN @attrset Bib-1 @term numeric 32" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -206,7 +206,7 @@ static void tst() "" "computer" "\n", - "RPN: @attrset Bib-1 @term string computer" + "RPN @attrset Bib-1 @term string computer" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -216,7 +216,7 @@ static void tst() "" "" "\n", - "RPN: @attrset Bib-1 @term null x" + "RPN @attrset Bib-1 @term null x" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -227,7 +227,7 @@ static void tst() "" "x" "\n", - "RPN: @attrset GILS @attr 4=2 x" + "RPN @attrset GILS @attr 4=2 x" ), XML_MATCH); #endif }