summaryrefslogtreecommitdiffstats
path: root/tests/expr-old.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2005-05-02 21:45:57 (GMT)
committerdgp <dgp@users.sourceforge.net>2005-05-02 21:45:57 (GMT)
commit76995b15620ca1eecef253001cd60a1a961b6605 (patch)
tree089fa1abfba39fead5b2bd44a7d8c52b56e81967 /tests/expr-old.test
parentb290d7bf023688cef522986a270daa4cc1bdc4cf (diff)
downloadtcl-76995b15620ca1eecef253001cd60a1a961b6605.zip
tcl-76995b15620ca1eecef253001cd60a1a961b6605.tar.gz
tcl-76995b15620ca1eecef253001cd60a1a961b6605.tar.bz2
* generic/tcl.decls:
* generic/tclBasic.c: Simplified implementation of Tcl_ExprString. * tests/expr-old.test: * generic/tclDecls.h: `make gentstubs`
Diffstat (limited to 'tests/expr-old.test')
-rw-r--r--tests/expr-old.test9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/expr-old.test b/tests/expr-old.test
index 4f12a33..5690a14 100644
--- a/tests/expr-old.test
+++ b/tests/expr-old.test
@@ -13,7 +13,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: expr-old.test,v 1.23 2005/01/28 13:38:59 dkf Exp $
+# RCS: @(#) $Id: expr-old.test,v 1.24 2005/05/02 21:46:00 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -972,6 +972,13 @@ test expr-old-38.1 {Verify Tcl_ExprString's basic operation} testexprstring {
list [testexprstring "1+4"] [testexprstring "2*3+4.2"] \
[catch {testexprstring "1+"} msg] $msg
} {5 10.2 1 {syntax error in expression "1+": premature end of expression}}
+test expr-old-38.2 {Tcl_ExprString} testexprstring {
+ # This one is "magical"
+ testexprstring {}
+} 0
+test expr-old-38.3 {Tcl_ExprString} -constraints testexprstring -body {
+ testexprstring { }
+} -returnCodes error -match glob -result *
#
# Test for bug #908375: rounding numbers that do not fit in a