This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
The published results of op-subtract-dayTimeDuration-from-time-16 are incorrect. The query is: (xs:time("09:06:07Z") - xdt:dayTimeDuration("P18DT02H02M")) ge xs:time("01:01:01Z") and the published result is: false. I believe the correct result is: true. Rationale: xs:time("09:06:07Z") - xdt:dayTimeDuration("P18DT02H02M") evaluates to xs:time('07:04:07Z') which is greater than 01:01:01Z Michael Kay
Similar problems affect op-subtract-dayTimeDuration-from-time-15 op-subtract-dayTimeDuration-from-time-16 op-subtract-dayTimeDuration-from-time-17
Mike: Agree with some of your comments: "op-subtract-dayTimeDuration-from-time-15" and "op-subtract-dayTimeDuration-from-time-16" both should return true However on "op-subtract-dayTimeDuration-from-time-17" xs:time("12:07:08Z") - xdt:dayTimeDuration("P12DT10H07M") evaluates to xs:time('02:00:08Z') and xs:time('02:00:08Z') and fn:false() should evaluate to false. Please tell me if I am overlooking/misundestanding something. Please close bug if you agree with resolution. Carmelo
I should have listed -17 under a different bug report. The query is xs:time("12:07:08Z") - xdt:dayTimeDuration("P12DT10H07M") and fn:false() and it fails because the LH operand of "and" is an xs:time, and taking the effective boolean value of an xs:time is a type error. MK
Thanks. rather than changing the test, I will change its type to an error tests, which expects a run-time error of FORG0006. Hope this works. Carmelo
You need to handle this one the same as those listed in 2352, they all have the same error. If you change all of these to expect an error, then we're going to lose an awful lot of useful test cases.
Very true. Will follow similar scheme as other ones. Is still evaluates to false. I used the string representation of the LH operation. Carmelo