summaryrefslogtreecommitdiffstats
path: root/tests/cmdMZ.test
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-04-01 14:00:42 (GMT)
committersebres <sebres@users.sourceforge.net>2019-04-01 14:00:42 (GMT)
commit2b8e087252d5342939ea2428e6923ebfb746a177 (patch)
treecc6273f536bc37b46bd116c53a501adca3d077e7 /tests/cmdMZ.test
parentabf9722f425fcd4a8327dddaf5c5ccf08b1d30d6 (diff)
parent01dccf28f9a4c2280c11b24bef6cac2313a7ead3 (diff)
downloadtcl-2b8e087252d5342939ea2428e6923ebfb746a177.zip
tcl-2b8e087252d5342939ea2428e6923ebfb746a177.tar.gz
tcl-2b8e087252d5342939ea2428e6923ebfb746a177.tar.bz2
merge 8.5
Diffstat (limited to 'tests/cmdMZ.test')
-rw-r--r--tests/cmdMZ.test7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/cmdMZ.test b/tests/cmdMZ.test
index c3afc8d..e9f9006 100644
--- a/tests/cmdMZ.test
+++ b/tests/cmdMZ.test
@@ -360,8 +360,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]