w3c / qt3tests

Tests for XPath and XQuery
27 stars 17 forks source link

A spec needed for test case fn-replace-58 #40

Closed brunato closed 2 years ago

brunato commented 2 years ago

Hi,

the test case "fn-replace-58" requires a spec="XP3.1+" because it uses the arrow operator =>:

file: fn/replace.xml

   <test-case name="fn-replace-58">
      <description>Evaluation of replace with emoji. Saxon bug 5174.</description>
      <created by="Michael Kay after Martin Honnen" on="2021-11-24"/>
      <test>let $in := codepoints-to-string((72, 101, 108, 108, 111, 32, 128512, 128515, 128516, 32, 
                                             128156, 129446, 32, 252, 228, 246, 36)) 
         return replace($in, "\p{IsEmoticons}+", "") => string-to-codepoints()</test>
      <result>
         <assert-deep-eq>72, 101, 108, 108, 111, 32, 32, 
            128156, 129446, 32, 252, 228, 246, 36</assert-deep-eq>
      </result>
   </test-case>

Thank you

michaelhkay commented 2 years ago

Fixed as suggested.