W3C home > Mailing lists > Public > public-qt-comments@w3.org > September 2010

[Bug 10797] New: Expected result for K2-NodeLangFunc-2 is wrong

From: <bugzilla@jessica.w3.org>
Date: Tue, 28 Sep 2010 21:03:26 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-10797-523@http.www.w3.org/Bugs/Public/>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=10797

           Summary: Expected result for K2-NodeLangFunc-2 is wrong
           Product: XML Query Test Suite
           Version: 1.0.3
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XML Query Test Suite
        AssignedTo: andrew.eisenberg@us.ibm.com
        ReportedBy: spungi@gmail.com
         QAContact: public-qt-comments@w3.org


The expected result for test  

http://dev.w3.org/2006/xquery-test-suite/TestSuiteStagingArea/Queries/XQuery/Functions/NodeFunc/NodeLangFunc/K2-NodeLangFunc-2.xq

is 'true'

http://dev.w3.org/cvsweb/~checkout~/2006/xquery-test-suite/TestSuiteStagingArea/ExpectedTestResults/Functions/NodeFunc/NodeLangFunc/K2-NodeLangFunc-2.txt?rev=1.1.1.1&content-type=text/plain

even though a single attribute node is passed as second argument of fn:lang.

Either:

1) the test can be corrected, with something like:
let $i := <e xml:lang="en">
    <b xml:lang="de"/>
</e>
return lang("de", $i/b)

or
2) the expected result should be corrected, and 'false' should be expected

-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Tuesday, 28 September 2010 21:03:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:15:06 GMT