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 14739 - fn:map test case map-008
Summary: fn:map test case map-008
Status: RESOLVED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Recommendation
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Benjamin Nguyen
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-09 15:11 UTC by Michael Kay
Modified: 2011-11-09 15:12 UTC (History)
0 users

See Also:


Attachments

Description Michael Kay 2011-11-09 15:11:58 UTC
This test reads:

let $f := function($x as xs:double){map(round#1, $x)} 
return $f((1.2345, 6.789))

This throws an unintended type error because a sequence of two doubles is being passed to a function that expects a singleton.
Comment 1 Michael Kay 2011-11-09 15:12:28 UTC
The test has been corrected by making the function expect a sequence of xs:doubles.