Tcl Source Code

Check-in [1f26e5f3f1]
Login
Bounty program for improvements to Tcl and certain Tcl packages.
Tcl 2019 Conference, Houston/TX, US, Nov 4-8
Send your abstracts to [email protected]
or submit via the online form by Sep 9.

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:test an abbreviated option for clock scan
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | avl-fix-clock-scan-option-prefixes
Files: files | file ages | folders
SHA3-256: 1f26e5f3f1533ec27f24662762774c57e1f495e167bfc6c95b6f21e87ad13b9f
User & Date: avl42 2018-04-08 13:52:53
Original User & Date: fa 2018-04-08 13:52:53
Context
2018-04-08
13:52
test an abbreviated option for clock scan Leaf check-in: 1f26e5f3f1 user: avl42 tags: avl-fix-clock-scan-option-prefixes
13:38
bugfix: clock scan accepted but ignored prefixes of options check-in: c41ad33cb4 user: avl42 tags: avl-fix-clock-scan-option-prefixes
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to tests/clock.test.

18538
18539
18540
18541
18542
18543
18544




18545
18546
18547
18548
18549
18550
18551
test clock-6.10 {input of seconds - overflow} {
    list [catch {clock scan 9223372036854775808 -format %s -gmt true} result] $result
} {1 {integer value too large to represent}}

test clock-6.11 {input of seconds - two values} {
    clock scan {1 2} -format {%s %s} -gmt true
} 2





test clock-7.1 {Julian Day} {
    clock scan 0 -format %J -gmt true
} -210866803200

test clock-7.2 {Julian Day} {
    clock format [clock scan 2440588 -format %J -gmt true] \






>
>
>
>







18538
18539
18540
18541
18542
18543
18544
18545
18546
18547
18548
18549
18550
18551
18552
18553
18554
18555
test clock-6.10 {input of seconds - overflow} {
    list [catch {clock scan 9223372036854775808 -format %s -gmt true} result] $result
} {1 {integer value too large to represent}}

test clock-6.11 {input of seconds - two values} {
    clock scan {1 2} -format {%s %s} -gmt true
} 2

test clock-6.12 {abbreviation of -format} {
    clock scan 0 -forma %s
} 0

test clock-7.1 {Julian Day} {
    clock scan 0 -format %J -gmt true
} -210866803200

test clock-7.2 {Julian Day} {
    clock format [clock scan 2440588 -format %J -gmt true] \