Re: early version of the XML Query Test Suite

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