X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=test%2Ftstxmlquery.c;h=fb0fddba3fe282187a1815aa637d2f1d6d196c17;hb=7e156f9a105b894b600c78d0b0a55224ae9b9793;hp=dd6729e2138ed8b8b101ecde7ccab71b032b8274;hpb=7a025b4322380d71b3b2abb1843fcbf622ff4b56;p=yaz-moved-to-github.git diff --git a/test/tstxmlquery.c b/test/tstxmlquery.c index dd6729e..fb0fddb 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.7 2006-01-31 11:01:26 adam Exp $ + * $Id: tstxmlquery.c,v 1.8 2006-02-02 15:00:58 adam Exp $ */ #include @@ -88,7 +88,7 @@ void tst() "\n" "" "" - "computer" + "computer" "\n"), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -97,7 +97,7 @@ void tst() "" "" "" - "computer" + "computer" "\n"), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -106,7 +106,7 @@ void tst() "" "" "" - "computer" + "computer" "\n"), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -114,7 +114,8 @@ void tst() "\n" "" "" - "ab" + "a" + "b" "\n"), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -122,9 +123,10 @@ void tst() "\n" "" "" - "a" - "b" - "c" + "" + "a" + "b" + "c" "\n"), XML_MATCH); YAZ_CHECK_EQ(pqf2xml_text( @@ -144,9 +146,34 @@ void tst() "ordered=\"true\" " "relationType=\"2\" " "knownProximityUnit=\"2\">" - "ab" + "a" + "b" "\n"), XML_MATCH); + YAZ_CHECK_EQ(pqf2xml_text( + "@term numeric 32", + "\n" + "" + "" + "32" + "\n"), XML_MATCH); + + YAZ_CHECK_EQ(pqf2xml_text( + "@term string computer", + "\n" + "" + "" + "computer" + "\n"), XML_MATCH); + + YAZ_CHECK_EQ(pqf2xml_text( + "@term null void", + "\n" + "" + "" + "" + "\n"), XML_MATCH); + #endif }