Skip to content
Tcl Source Code View Ticket
Login

View Ticket

new clock.test failures

Closed / Fixeddc0770a2397ae0b1ca505275f957712261e7ac1eCreated 3 years agoUpdated 3 years ago
Descriptionplain2024-04-03 18:00:34
$ make test-tcl
...
clock-ivm.test
  Validity default mode: on


==== clock-46.29-2.vm:1 scan: validation rules: valid day of leap/not leap year FAILED
==== Contents of test case:

        list [clock format [clock scan "366-2016" -format "%j-%Y" -valid 1 -gmt 1] -format "%d-%m-%Y"]  [clock format [clock scan "365-2017" -format "%j-%Y" -valid 1 -gmt 1] -format "%d-%m-%Y"]  [clock format [clock scan "366-2016" -format "%j-%G" -valid 1 -gmt 1] -format "%d-%m-%Y"]  [clock format [clock scan "365-2017" -format "%j-%G" -valid 1 -gmt 1] -format "%d-%m-%Y"]
    
---- Result was:
30-12-2016 30-12-2017 30-12-2016 30-12-2017
---- Result should have been (exact matching):
31-12-2016 31-12-2017 31-12-2016 31-12-2017
==== clock-46.29-2.vm:1 FAILED

clock.test
  Validity default mode: off


==== clock-46.29-2.vm:0 scan: validation rules: valid day of leap/not leap year FAILED
==== Contents of test case:

        list [clock format [clock scan "366-2016" -format "%j-%Y" -valid 1 -gmt 1] -format "%d-%m-%Y"]  [clock format [clock scan "365-2017" -format "%j-%Y" -valid 1 -gmt 1] -format "%d-%m-%Y"]  [clock format [clock scan "366-2016" -format "%j-%G" -valid 1 -gmt 1] -format "%d-%m-%Y"]  [clock format [clock scan "365-2017" -format "%j-%G" -valid 1 -gmt 1] -format "%d-%m-%Y"]
    
---- Result was:
30-12-2016 30-12-2017 30-12-2016 30-12-2017
---- Result should have been (exact matching):
31-12-2016 31-12-2017 31-12-2016 31-12-2017
==== clock-46.29-2.vm:0 FAILED
sebreswiki2024-04-03 18:42:54

Looks like TZ-issue.
I'll make this tests timezone independently.

sebreswiki2024-04-03 18:53:47

Fixed in [793f4643fae6a5db] (8.7) & [33460960eff6f141] (trunk). Closed.

Log in (anonymous is fine) to add a comment.