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 7530 - op-date-less-than-2 expects true instead of false
Summary: op-date-less-than-2 expects true instead of false
Status: RESOLVED INVALID
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: 1.0.2
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: Andrew Eisenberg
QA Contact: Mailing list for public feedback on specs from XSL and XML Query WGs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-07 15:18 UTC by David Carver
Modified: 2009-09-16 22:29 UTC (History)
1 user (show)

See Also:


Attachments

Description David Carver 2009-09-07 15:18:31 UTC
According to the op-date-less-than-2 test for date less than comparison this is working off of example 2.

http://www.w3.org/TR/xpath-functions/#func-date-less-than

Which expects says should return false, which is the correct value.  However the test in the test suite is expecting true.  Which is incorrect, as when these dates are normalized for comparison they provide the same value.
Comment 1 Michael Kay 2009-09-16 22:29:29 UTC
The example in the spec is testing less-than. The test case, despite everything you might guess from the test name or from its comments and description, is testing "le". The two dates are equal, so a "lt" test returns false, while a "le" test returns true.

I shall mark the bug "invalid" on this basis, if you disagree, please feel free to reopen it.