[Bug 28994] New: JSON tests should expect FOTY004 instead of FOJS0005

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

            Bug ID: 28994
           Summary: JSON tests should expect FOTY004 instead of FOJS0005
           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

In FNO 3.1, section 1.5 it says: 

"For each named option, the function specification defines a required type for
the option value. The value that is actually supplied in the map is converted
to this required type using the function conversion rulesXP31. A type error
[err:XPTY0004]XP30 occurs if conversion of the supplied value to the required
type is not possible..."

The following tests should expect XPTY0004 instead of FOJS0005:

 fn-parse-json-938
   - parse-json('{"a":1, "b":2, "c":3}', map{'liberal':'liberal'})
 json-doc-error-012 
   - fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json',
map{'liberal':()})
 json-doc-error-013 
   - fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json',
map{'escape':()})
 json-doc-error-014 
   - fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json',
map{'escape':(true(),true())})
 json-doc-error-015 
   - fn:json-doc('http://www.w3.org/qt3/json/arrayNumber-json',
map{'escape':'EMCA-262'})
 json-to-xml-error-023
   - fn:json-to-xml('["String"]', map{'escape':()})

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

Received on Monday, 27 July 2015 19:14:55 UTC