summaryrefslogtreecommitdiffstats
path: root/tests/info.test
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2005-10-10 21:50:01 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2005-10-10 21:50:01 (GMT)
commit425ae280f138405bbdc41739e0bb6144e4518e30 (patch)
treed96fb9388c5fbce5bc8abfa66be836b574c41380 /tests/info.test
parent23cc8da10b48873d4ffa43732da81094aa5637b8 (diff)
downloadtcl-425ae280f138405bbdc41739e0bb6144e4518e30.zip
tcl-425ae280f138405bbdc41739e0bb6144e4518e30.tar.gz
tcl-425ae280f138405bbdc41739e0bb6144e4518e30.tar.bz2
TIP#237 introduced a new function, entier, so add it to the list of functions.
Diffstat (limited to 'tests/info.test')
-rw-r--r--tests/info.test9
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