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 3274 - op-time-greater-than-2 test 'gt' not 'ge'
Summary: op-time-greater-than-2 test 'gt' not 'ge'
Status: RESOLVED FIXED
Alias: None
Product: XML Query Test Suite
Classification: Unclassified
Component: XML Query Test Suite (show other bugs)
Version: unspecified
Hardware: PC All
: P2 normal
Target Milestone: ---
Assignee: Carmelo Montanez
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-11 17:46 UTC by Jinghao Liu
Modified: 2006-05-17 17:55 UTC (History)
0 users

See Also:


Attachments

Description Jinghao Liu 2006-05-11 17:46:25 UTC
In test op-time-greater-than-2:

(:*******************************************************:)
(:Test:  op-time-greater-than-2                          :)
(:Written By: Carmelo Montanez                           :)
(:Date: June 13, 2005                                    :)
(:Purpose: Evaluates The "time-greater-than" function    :)
(:As per example 1 (for this function)of the F&O specs   :)
(:(ge operator).                                         :)
(:*******************************************************:)

(xs:time("08:00:00+09:00") ge xs:time("17:00:00-06:00"))

The operator should be 'gt', not 'ge'.  Otherwise it wouldn't match the expected result 'false'.
Comment 1 Carmelo Montanez 2006-05-15 21:10:05 UTC
Jinghao:

Why do you think that using the "ge" will still not return a false value
for this test?

Thanks
Carmelo
Comment 2 Jinghao Liu 2006-05-15 23:17:01 UTC
Because both times represent the same time 23:00:00Z according to http://www.w3.org/TR/xmlschema-2/#time-lexical-repr.

So (xs:time("08:00:00+09:00") ge xs:time("17:00:00-06:00") should yield result as true, not false.  
Comment 3 Carmelo Montanez 2006-05-16 18:55:08 UTC
Jinghao:

You are correct.  The "ge" should result ina "true" value.
I will change the test results as soon as the internal CVS
issues are solved.  Will leave the issue as "assigned" for now.

Thanks,
Carmelo
Comment 4 Carmelo Montanez 2006-05-17 17:55:43 UTC
Jinghao:

I changed the expected outcome for this test to "true".  Please close bug if in
agreement.

Thanks,
Carmelo