- From: <bugzilla@wiggum.w3.org>
- Date: Mon, 09 Jul 2007 15:32:44 +0000
- To: public-qt-comments@w3.org
- CC:
http://www.w3.org/Bugs/Public/show_bug.cgi?id=4842
Summary: rounding of arguments to fn:subsequence not adequately
tested
Product: XML Query Test Suite
Version: 1.0.2
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
Component: XML Query Test Suite
AssignedTo: andrew.eisenberg@us.ibm.com
ReportedBy: oliver@cbcl.co.uk
QAContact: public-qt-comments@w3.org
Our implenetation of fn:subsequence was incorrectly using fs:ceiling rather
than fs:round to round the arguments. This was solving the problem in bug
4841, and with the adjusted formal semantics rules (in bug 4841) was not
causing any tests to fail.
Perhaps a few more tests should be added to XQTS to check rounding of
arguments, eg:
fn:subsequence((1,2,3), 1.1, 1) should give 1
fn:subsequence((1,2,3), 1.8, 1) should give 2
fn:subsequence((1,2,3), 1.4, 1.4) should give 1
fn:subsequence((1,2,3), 1.5, 1.5) should give (2, 3)
Received on Monday, 9 July 2007 15:32:46 UTC