[Bug 28998] New: json-to-xml-042 should expect FOJS0003

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28998

            Bug ID: 28998
           Summary: json-to-xml-042 should expect FOJS0003
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XQuery 3 & XPath 3 Test Suite
          Assignee: oneil@saxonica.com
          Reporter: josh.spiegel@oracle.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---
             Group: XSLXQuery_WG

<test-case name="json-to-xml-042">
  <description>No duplicates after no unescaping</description>
  ...
  <environment ref="json-ns"/>
  <dependency type="feature" value="schemaImport"/>
  <test><![CDATA[
    fn:json-to-xml('{"\n":1, "\u000A":2}', map{'escape':true(),
'duplicates':'reject'})
  ]]></test>
  <result>
    <assert-xml ignore-prefixes="true"><![CDATA[...]]></assert-xml> 
  </result>
</test-case>

"\n" and "\u000A" are escape sequences for the same character.  When escape is
true(), they will both be escaped as "\n" and compare equal.  Given that
duplicates=reject, this should cause FOJS0003.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Monday, 27 July 2015 20:13:26 UTC