X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=test%2Ftstxmlquery.c;h=aea617706ab27ed569543badee5ba5c40686e08d;hp=7ed5477c3b30414d568d880116c10fb9f337b1f9;hb=d168db0590bc858a1bc9bd5a6ea66abbcd8f7d7d;hpb=6671d1583ced9613ab7f12bfed69fd70fd9e6b15 diff --git a/test/tstxmlquery.c b/test/tstxmlquery.c index 7ed5477..aea6177 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.9 2006-02-19 18:44:23 adam Exp $ + * $Id: tstxmlquery.c,v 1.10 2006-02-23 11:17:25 adam Exp $ */ #include @@ -111,64 +111,64 @@ static void tst() YAZ_CHECK_EQ(pqf2xml_text( "@attr 1=4 computer", "\n" - "" + "" "" "computer" - "\n", + "\n", "RPN: @attrset Bib-1 @attr 1=4 computer" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( "@attr 2=1 @attr 1=title computer", "\n" - "" + "" "" "" "computer" - "\n", + "\n", "RPN: @attrset Bib-1 @attr \"1=title\" @attr 2=1 computer" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( "@attr 2=1 @attr exp1 1=1 computer", "\n" - "" + "" "" "" "computer" - "\n", + "\n", "RPN: @attrset Bib-1 @attr Exp-1 1=1 @attr 2=1 computer" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( "@and a b", "\n" - "" - "" + "" + "" "a" "b" - "\n", + "\n", "RPN: @attrset Bib-1 @and a b" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( "@or @and a b c", "\n" - "" - "" - "" + "" + "" + "" "a" - "b" + "b" "c" - "\n", + "\n", "RPN: @attrset Bib-1 @or @and a b c" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( "@set abe", "\n" - "" - "abe\n", + "" + "abe\n", "RPN: @attrset Bib-1 @set abe" ), XML_MATCH); @@ -177,56 +177,56 @@ static void tst() knownunit, proxunit */ "@prox 0 3 1 2 k 2 a b", "\n" - "" - "" + "" "a" "b" - "\n", + "\n", "RPN: @attrset Bib-1 @prox 0 3 1 2 k 2 a b" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( "@term numeric 32", "\n" - "" + "" "" "32" - "\n", + "\n", "RPN: @attrset Bib-1 @term numeric 32" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( "@term string computer", "\n" - "" + "" "" "computer" - "\n", + "\n", "RPN: @attrset Bib-1 @term string computer" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( "@term null void", "\n" - "" + "" "" "" - "\n", + "\n", "RPN: @attrset Bib-1 @term null x" ), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( "@attrset gils @attr 4=2 x", "\n" - "" + "" "" "" "x" - "\n", + "\n", "RPN: @attrset GILS @attr 4=2 x" ), XML_MATCH); #endif