summaryrefslogtreecommitdiffstats
path: root/tests/cmdMZ.test
diff options
context:
space:
mode:
authorsebres <sebres@users.sourceforge.net>2019-04-01 13:53:54 (GMT)
committersebres <sebres@users.sourceforge.net>2019-04-01 13:53:54 (GMT)
commitc9c10da2348888cbd29e377265a6f91915630e31 (patch)
tree4ac8634fffcaacfde189c891b9cfcf643eb38b38 /tests/cmdMZ.test
parent711e86950862555152d02b2066cb976ad1eb4563 (diff)
downloadtcl-c9c10da2348888cbd29e377265a6f91915630e31.zip
tcl-c9c10da2348888cbd29e377265a6f91915630e31.tar.gz
tcl-c9c10da2348888cbd29e377265a6f91915630e31.tar.bz2
closes [1a3fa1232e306a44], test case cmdMZ-6.5 fixed to cover float value by iteration per second
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 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]