<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>29676</bug_id>
          
          <creation_ts>2016-05-31 09:28:22 +0000</creation_ts>
          <short_desc>[QT3TS] map-entry-001-hof</short_desc>
          <delta_ts>2016-09-20 16:15:26 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XPath / XQuery / XSLT</product>
          <component>XQuery 3 &amp; XPath 3 Test Suite</component>
          <version>Candidate Recommendation</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>https://www.w3.org/Bugs/Public/show_bug.cgi?id=29586</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Mills">tim</reporter>
          <assigned_to name="O&apos;Neil Delpratt">oneil</assigned_to>
          <cc>mike</cc>
          
          <qa_contact name="Mailing list for public feedback on specs from XSL and XML Query WGs">public-qt-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>126626</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-05-31 09:28:22 +0000</bug_when>
    <thetext>Assertion 

  &lt;not&gt;&lt;assert-type&gt;function(xs:anyAtomicType) as xs:integer?&lt;/assert-type&gt;&lt;/not&gt;

will need to be negated if the changes to the judgement subtype-itemtype(Ai, Bi) in Bug 29586 are adopted.

It might be necessary regardless of Bug 29586 if we take the view that it&apos;s acceptable to return a subtype.

I suggest changing this to

  &lt;assert-type&gt;function(xs:anyAtomicType) as item()*&lt;/assert-type&gt;

at the very least.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126627</commentid>
    <comment_count>1</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-05-31 14:51:14 +0000</bug_when>
    <thetext>Test map-put-003-hof is similarly affected.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>126816</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-06-21 16:28:06 +0000</bug_when>
    <thetext>Now fixed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127261</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-08-30 22:25:18 +0000</bug_when>
    <thetext>I am seeing three tests that appear to be still incorrect:

map-merge-003-hof

has &lt;assert-type&gt;function(xs:anyURI) as xs:integer*&lt;/assert-type&gt;

map-put-003-hof

has &lt;assert-type&gt;function(xs:string) as xs:integer*&lt;/assert-type&gt;

map-entry-001-hof 

has &lt;assert-type&gt;function(xs:anyAtomicType) as xs:integer?&lt;/assert-type&gt;

I thought the idea/agreement was to change all of these to say &quot;as item()*&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127262</commentid>
    <comment_count>4</comment_count>
    <who name="Tim Mills">tim</who>
    <bug_when>2016-08-31 08:55:13 +0000</bug_when>
    <thetext>See rule 35 in 2.5.6.2 The judgement subtype-itemtype(Ai, Bi).

Ai is map(K, V), and Bi is function(xs:anyAtomicType) as V?.

The test asserts

     &lt;assert-type&gt;map(xs:string, xs:integer+)&lt;/assert-type&gt;

so we know that 

     &lt;assert-type&gt;function(xs:anyAtomicType) as xs:integer*&lt;/assert-type&gt;

should hold, and therefore by rule 26,

     &lt;assert-type&gt;function(xs:anyURI) as xs:integer*&lt;/assert-type&gt;

should hold.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>127447</commentid>
    <comment_count>5</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2016-09-20 16:15:26 +0000</bug_when>
    <thetext>My re-opening in comment 3 is withdrawn.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>