W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > October 2011

error in testcase agg-avg-02

From: Jeen Broekstra <jeen.broekstra@gmail.com>
Date: Thu, 20 Oct 2011 16:56:59 +1300
Message-ID: <4E9F9C0B.30106@gmail.com>
To: public-rdf-dawg-comments@w3.org

Hello WG,

Test case agg-avg-02 (in 
http://www.w3.org/2009/sparql/docs/tests/data-sparql11/aggregates/) 
contains an error in the expected result. Specifically, it say this in 
agg-avg-02.srx:

      <result>
       <binding name="s">
         <uri>http://www.example.org/ints</uri>
       </binding>
       <binding name="avg">
         <literal 
datatype="http://www.w3.org/2001/XMLSchema#integer">2</literal>
       </binding>
     </result>

The datatype for the expected binding of 'avg' is incorrect: the result 
of an average computation over literals of type xsd:integer should be 
xsd:decimal (as it involves a numeric divide, see also 
http://www.w3.org/TR/xpath-functions/#func-numeric-divide).

I have actually reported this exact same problem before a while back, to 
which the response was that it had been corrected. Perhaps an unintended 
regression?

Cheers,

Jeen
Received on Thursday, 20 October 2011 03:57:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 20 October 2011 03:57:45 GMT