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 22091 - New higher-order function signatures: updated test cases
Summary: New higher-order function signatures: updated test cases
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Candidate Recommendation
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-19 22:06 UTC by Christian Gruen
Modified: 2013-05-21 10:52 UTC (History)
0 users

See Also:


Attachments

Description Christian Gruen 2013-05-19 22:06:00 UTC
I stumbled upon a few test cases that may have not been aligned yet with the new higher order function signatures:

- instanceof132: should probably be...
  filter#2 instance of function(item()*, function(item()) as xs:boolean) as item()*

- instanceof133: should probably be...
  filter#2 instance of function(item()*, function(item()*) as xs:boolean) as item()*

- function-literal-426: should probably be...
  Q{http://www.w3.org/2005/xpath-functions}filter#2(1 to 10, function($a) {$a mod 2 = 0})

- function-literal-428: should probably be...
  Q{http://www.w3.org/2005/xpath-functions}fold-left#3(1 to 5, "", fn:concat(?, ".", ?))

- function-literal-431: should probably be...
  exists(Q{http://www.w3.org/2005/xpath-functions}for-each-pair#3)

- function-literal-432: should probably be...
  Q{http://www.w3.org/2005/xpath-functions}for-each-pair#3(("a", "b", "c"), ("x", "y", "z"), concat#2)

- xqhof3: "map-pairs" needs to be replaced with "for-each-pair"

- fn-for-each-pair-013, fn-for-each-pair-017, fn-for-each-pair-035
  the XML files in the directory "fn/for-each-pair/" are missing
Comment 1 O'Neil Delpratt 2013-05-20 20:57:36 UTC
Thanks Christian. All test cases mentioned have been fixed and committed to cvs. Thanks to John Snelson for providing a solution to xqhof3.
Comment 2 Christian Gruen 2013-05-20 22:04:15 UTC
O'Neil, thanks for the update. Everything looks fine, except for the test case 'instanceof133', which I believe still needs to be changed.
Comment 3 O'Neil Delpratt 2013-05-20 23:06:53 UTC
Sorry, missed that one. Test case instanceof133 now fixed and committed to cvs.
Comment 4 Christian Gruen 2013-05-21 10:52:52 UTC
Thanks!