diff options
-rw-r--r-- | tests/info.test | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/info.test b/tests/info.test index 4cc6e32..0dab4bd 100644 --- a/tests/info.test +++ b/tests/info.test @@ -11,7 +11,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: info.test,v 1.33 2005/09/29 23:16:29 hobbs Exp $ +# RCS: @(#) $Id: info.test,v 1.34 2005/10/10 21:50:01 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -625,11 +625,10 @@ test info-19.6 {info vars: Bug 1072654} -setup { namespace delete x } -result {} +set functions {abs acos asin atan atan2 bool ceil cos cosh double entier exp floor fmod hypot int log log10 max min pow rand round sin sinh sqrt srand tan tanh wide} # Check whether the extra testing functions are defined... -if {([catch {expr T1()} msg] == 1) && ($msg == {unknown math function "T1"})} { - set functions {abs acos asin atan atan2 bool ceil cos cosh double exp floor fmod hypot int log log10 max min pow rand round sin sinh sqrt srand tan tanh wide} -} else { - set functions {T1 T2 T3 abs acos asin atan atan2 bool ceil cos cosh double exp floor fmod hypot int log log10 max min pow rand round sin sinh sqrt srand tan tanh wide} +if {!([catch {expr T1()} msg] && ($msg eq {unknown math function "T1"}))} { + set functions "T1 T2 T3 $functions" ;# A lazy way of prepending! } test info-20.1 {info functions option} {info functions sin} sin test info-20.2 {info functions option} {lsort [info functions]} $functions |