diff options
author | oehhar <harald.oehlmann@elmicron.de> | 2015-10-23 08:08:09 (GMT) |
---|---|---|
committer | oehhar <harald.oehlmann@elmicron.de> | 2015-10-23 08:08:09 (GMT) |
commit | a231dcf0ac4bdbdd550d70cc4955dfe048d0d21b (patch) | |
tree | e8dd0d7c2713550f9b426f7f5271094148ba8597 /tests/clock.test | |
parent | c0a4d1371acc97ba5adb5ce5bd6be789a1d7923d (diff) | |
download | tcl-a231dcf0ac4bdbdd550d70cc4955dfe048d0d21b.zip tcl-a231dcf0ac4bdbdd550d70cc4955dfe048d0d21b.tar.gz tcl-a231dcf0ac4bdbdd550d70cc4955dfe048d0d21b.tar.bz2 |
New test for clock scan, test numbering corrected
Diffstat (limited to 'tests/clock.test')
-rwxr-xr-x[-rw-r--r--] | tests/clock.test | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/tests/clock.test b/tests/clock.test index 4f69ed3..d4f0bc9 100644..100755 --- a/tests/clock.test +++ b/tests/clock.test @@ -36932,22 +36932,35 @@ test clock-67.2 {Bug d19a30db57} -body { tcl::clock::GetJulianDayFromEraYearMonthDay {} 2361222 } -returnCodes error -match glob -result * -test clock-67.3 {Change %x output on global locale change [Bug 4a0c163d24]} -setup { +test clock-67.3 {Bug d19a30db57} -body { + # error, not segfault + tcl::clock::GetJulianDayFromEraYearWeekDay {} 2361222 +} -returnCodes error -match glob -result * + +test clock-67.4 {Change format %x output on global locale change [Bug 4a0c163d24]} -setup { package require msgcat set current [msgcat::mclocale] } -body { msgcat::mclocale de_de - set res [clock format 1 -locale current -format %x] + set res [list [clock format 1 -locale current -format %x]] msgcat::mclocale en_uk lappend res [clock format 1 -locale current -format %x] } -cleanup { msgcat::mclocale $current } -result {01.01.1970 01/01/1970} -test clock-67.3 {Bug d19a30db57} -body { - # error, not segfault - tcl::clock::GetJulianDayFromEraYearWeekDay {} 2361222 -} -returnCodes error -match glob -result * +test clock-67.5 {Change scan %x output on global locale change [Bug 4a0c163d24]} -setup { + package require msgcat + set current [msgcat::mclocale] +} -body { + msgcat::mclocale de_de + set res [clock scan "01.01.1970" -locale current -format %x] + msgcat::mclocale en_uk + # This will fail without the bug fix, as still de_de is active + expr {$res == [clock scan "01/01/1970" -locale current -format %x]} +} -cleanup { + msgcat::mclocale $current +} -result {1} # cleanup |