W3C home > Mailing lists > Public > www-ql@w3.org > July to September 2005

Re: early version of the XML Query Test Suite

From: Xavier Franc <xfranc@online.fr>
Date: Mon, 15 Aug 2005 22:41:43 +0100
Message-ID: <43010C17.7020002@online.fr>
CC: Andrew Eisenberg <andrew.eisenberg@us.ibm.com>, www-ql@w3.org

I welcome this initiative; this sounds a very desirable and useful tool.


However I am a bit concerned by what seems to me a defect of the suite:
The expected result items are apparently not typed (except when they are 
nodes).

A consequence is that checking results can be imprecise:
For example, a test like
  (XQuery/Expressions/FLWORExpr/ForExprType/ForExprType010.xq)

for $num as xs:decimal in ...
return $num

has a corresponding result file looking like this:

-100000000000000000 -10000000000000000 -1000000000000000 ...

Then how can we be sure whether the type of items
is actually xs:decimal and not for example xs:integer ?
This is just an example, there are probably many possibilities
of ambiguity.

I think it would be better if results were presented in a form like 
hereafter,
where each result item is labelled with its expected type.

<result-items>
<item type="xs:decimal">-100000000000000000</item>
<item type="xs:decimal">-10000000000000000</item>
<item type="xs:decimal">-1000000000000000</item>
...
</result-items>


This is probably not needed for all tests, but there could be an
additional "comparator" that would take this kind of format as input.



>The XML Query Working Group and the XSL Working Group would like to 
>announce the availability of an early version of the XML Query Test Suite 
>(XQTS) at http://www.w3.org/XML/Query/test-suite/.
>
>  
>
Received on Monday, 15 August 2005 21:42:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:17:17 UTC