This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 3342 - K-SeqMINFunc-18 and K-SeqMINFunc-19 should check for xs:double
Summary: K-SeqMINFunc-18 and K-SeqMINFunc-19 should check for xs:double
Status: CLOSED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 0.9.4
Hardware: PC Windows XP
: P2 normal
Target Milestone: ---
Assignee: Frans Englich
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-16 13:33 UTC by Alberto Massari
Modified: 2006-06-27 18:56 UTC (History)
0 users

See Also:


Attachments

Description Alberto Massari 2006-06-16 13:33:58 UTC
Both tests check that fn:min returns a xs:float (representing NaN). But the specs requires to convert the items to a common datatype before checking for NaN ("If the converted sequence contains the value NaN, the value NaN is returned"), and in both cases the list of items contains an item that forces the conversion to xs:double (K-SeqMINFunc-18 has xs:untypedAtomic("3"), K-SeqMINFunc-19 has xs:double("NaN"))
Comment 1 Alberto Massari 2006-06-16 13:38:11 UTC
The same applies to K-SeqMAXFunc-18 and K-SeqMAXFunc-19
Comment 2 Frans Englich 2006-06-16 21:06:29 UTC
Fixed in CVS. I also added some more tests for this delicate area.

You are welcome to verify the latest version, which can be downloaded from here, the file AdditionalFiles/submission-frans.zip:

http://dev.w3.org/cvsweb/2006/xquery-test-suite/

It contains all tests by name K-*.


Frans
Comment 3 Frans Englich 2006-06-27 18:56:35 UTC
Since this report was resolved as suggested, I am changing status to CLOSED. Feel free to reopen if the resolution was incorrectly implemented, for example.


Frans