summaryrefslogtreecommitdiffstats
path: root/tests/expr-old.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-11-16 17:52:55 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-11-16 17:52:55 (GMT)
commit614b80fda60cf70187d3da10a17391322a05b9fd (patch)
treeec6a43e86ffe6478edb5c40e92cf6c57f7b4811e /tests/expr-old.test
parent3ab4bbd194ffc866926e287445e482cffb659d8e (diff)
downloadtcl-614b80fda60cf70187d3da10a17391322a05b9fd.zip
tcl-614b80fda60cf70187d3da10a17391322a05b9fd.tar.gz
tcl-614b80fda60cf70187d3da10a17391322a05b9fd.tar.bz2
Remove pre-8.5 interface for custom expr functions.
Diffstat (limited to 'tests/expr-old.test')
-rw-r--r--tests/expr-old.test16
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/expr-old.test b/tests/expr-old.test
index 4f3cb2e..e6808c6 100644
--- a/tests/expr-old.test
+++ b/tests/expr-old.test
@@ -26,12 +26,6 @@ testConstraint testexprdouble [llength [info commands testexprdouble]]
testConstraint testexprstring [llength [info commands testexprstring]]
testConstraint longIs32bit [expr {int(0x80000000) < 0}]
-if {[catch {expr T1()} msg] && $msg eq {invalid command name "tcl::mathfunc::T1"}} {
- testConstraint testmathfunctions 0
-} else {
- testConstraint testmathfunctions 1
-}
-
# Big test for correct ordering of data in [expr]
proc testIEEE {} {
@@ -849,12 +843,6 @@ test expr-old-32.41 {math functions in expressions} {
test expr-old-32.42 {math functions in expressions} {
list [catch {expr hypot(5*.8,3)} msg] $msg
} {0 5.0}
-test expr-old-32.43 {math functions in expressions} testmathfunctions {
- expr 2*T1()
-} 246
-test expr-old-32.44 {math functions in expressions} testmathfunctions {
- expr T2()*3
-} 1035
test expr-old-32.45 {math functions in expressions} {
expr (0 <= rand()) && (rand() < 1)
} {1}
@@ -954,10 +942,6 @@ test expr-old-34.15 {errors in math functions} {
test expr-old-34.16 {errors in math functions} {
expr round(-1.0e30)
} -1000000000000000019884624838656
-test expr-old-34.17 {errors in math functions} -constraints testmathfunctions \
- -body {
- list [catch {expr T1(4)} msg] $msg
- } -match glob -result {1 {too many arguments for math function*}}
test expr-old-36.1 {ExprLooksLikeInt procedure} -body {
expr 0o289