This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 17102 - [QT3TS] extvardef-016a & 016b
Summary: [QT3TS] extvardef-016a & 016b
Status: CLOSED FIXED
Alias: None
Product: XPath / XQuery / XSLT
Classification: Unclassified
Component: XQuery 3 & XPath 3 Test Suite (show other bugs)
Version: Working drafts
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: O'Neil Delpratt
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-18 15:12 UTC by Tim Mills
Modified: 2012-06-06 07:30 UTC (History)
0 users

See Also:


Attachments

Description Tim Mills 2012-05-18 15:12:29 UTC
Following the resolution of Bug 16034, these tests need to be corrected.
Comment 1 O'Neil Delpratt 2012-05-29 09:05:29 UTC
Tests have been fixed
Comment 2 Tim Mills 2012-05-31 12:45:46 UTC
extvardef-016b does not require evaluation of the context item.

Therefore the assignment of $y to the context item (which is the cause of XPTY0004) need not be evaluated.

The value of fn:last() can be computed statically based on the static type of the context item.

Therefore the test should also expect result 1.
Comment 3 O'Neil Delpratt 2012-05-31 14:43:19 UTC
OK. I think the intention of the test-case was to test last() returns 1 in the default case, with a valid context. Therefore I have corrected the xml assigned to the variable $y. Bug fixed and committed
Comment 4 Tim Mills 2012-06-06 07:30:15 UTC
Confirmed fixed.  Thanks.