diff options
Diffstat (limited to 'tests/misc.test')
-rw-r--r-- | tests/misc.test | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/tests/misc.test b/tests/misc.test index 9894e27..fe19ebe 100644 --- a/tests/misc.test +++ b/tests/misc.test @@ -17,6 +17,8 @@ if {[lsearch [namespace children] ::tcltest] == -1} { namespace import -force ::tcltest::* } +testConstraint testhashsystemhash [llength [info commands testhashsystemhash]] + test misc-1.1 {error in variable ref. in command in array reference} { proc tstProc {} { global a @@ -49,33 +51,26 @@ test misc-1.2 {error in variable ref. in command in array reference} { # this is a bogus comment " set msg {} - join [list [catch tstProc msg] $msg $errorInfo] \n + join [list [catch tstProc msg] $msg $::errorInfo] \n } [subst -novariables -nocommands {1 missing close-brace for variable name missing close-brace for variable name - while compiling + while executing "set tst $a([winfo name $\{zz) # this is a bogus comment # this is a bogus comment # this is a bogus comment # this is a bogus comment # this is a ..." - (compiling body of proc "tstProc", line 4) + (procedure "tstProc" line 4) invoked from within "tstProc"}] +for {set i 1} {$i<300} {incr i} { + test misc-2.$i {hash table with sys-alloc} testhashsystemhash \ + "testhashsystemhash $i" OK +} + # cleanup ::tcltest::cleanupTests return - - - - - - - - - - - - |