diff options
author | sebres <sebres@users.sourceforge.net> | 2019-04-01 13:53:54 (GMT) |
---|---|---|
committer | sebres <sebres@users.sourceforge.net> | 2019-04-01 13:53:54 (GMT) |
commit | 01dccf28f9a4c2280c11b24bef6cac2313a7ead3 (patch) | |
tree | 4ac8634fffcaacfde189c891b9cfcf643eb38b38 /tests | |
parent | 89fee2234176e8ba700279249fdbe5027e499e27 (diff) | |
download | tcl-01dccf28f9a4c2280c11b24bef6cac2313a7ead3.zip tcl-01dccf28f9a4c2280c11b24bef6cac2313a7ead3.tar.gz tcl-01dccf28f9a4c2280c11b24bef6cac2313a7ead3.tar.bz2 |
closes [1a3fa1232e306a44], test case cmdMZ-6.5 fixed to cover float value by iteration per second
Diffstat (limited to 'tests')
-rw-r--r-- | tests/cmdMZ.test | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/cmdMZ.test b/tests/cmdMZ.test index 60f6236..d1f0a44 100644 --- a/tests/cmdMZ.test +++ b/tests/cmdMZ.test @@ -365,8 +365,11 @@ test cmdMZ-6.3 {Tcl_TimeRateObjCmd: basic format of command} { test cmdMZ-6.4 {Tcl_TimeRateObjCmd: compile of script happens even with negative iteration counts} { list [catch {timerate "foreach a {c d e} \{" -12456} msg] $msg } {1 {missing close-brace}} -test cmdMZ-6.5 {Tcl_TimeRateObjCmd: result format and one iteration} { - regexp {^\d+.\d+ \ws/# 1 # \d+ #/sec \d+.\d+ nett-ms$} [timerate {} 0] +test cmdMZ-6.5a {Tcl_TimeRateObjCmd: result format and one iteration} { + regexp {^\d+(?:\.\d+)? \ws/# 1 # \d+(?:\.\d+)? #/sec \d+(?:\.\d+)? nett-ms$} [timerate {} 0] +} 1 +test cmdMZ-6.5b {Tcl_TimeRateObjCmd: result format without iterations} { + regexp {^0 \ws/# 0 # 0 #/sec 0 nett-ms$} [timerate {} 0 0] } 1 test cmdMZ-6.6 {Tcl_TimeRateObjCmd: slower commands take longer, but it remains almost the same time of measument} { set m1 [timerate {after 0} 20] |