[Bug 4309] fn-insert-before-mix-args-010 has invalid float value

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4309

           Summary: fn-insert-before-mix-args-010 has invalid float value
           Product: XML Query Test Suite
           Version: 1.0.2
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: carmelo@nist.gov
        ReportedBy: frans.englich@telia.com
         QAContact: public-qt-comments@w3.org


fn-insert-before-mix-args-010's query reads:

fn:insert-before( ("a", "b", "c"),2, xs:float("-0")) 

the expected base line is: "a 0 b c"

To me this seems wrong. 17.1.2 Casting to xs:string and xs:untypedAtomic reads:
"If SV has the value positive or negative zero, TV is "0" or "-0"
respectively."

Saxon evaluates the above to "a -0 b c", which is what I would expect.

In revision 1.5 of the file, the baseline changed from -0.0E0 to 0, without
documenting why:

http://dev.w3.org/cvsweb/2006/xquery-test-suite/TestSuiteStagingArea/ExpectedTestResults/Functions/SeqFunc/GeneralSeqFunc/SeqInsertBeforeFunc/fn-insert-before-mix-args-010.txt.diff?r1=1.4&r2=1.5&f=h


Frans

Received on Thursday, 8 February 2007 14:24:02 UTC