diff options
author | Kevin B Kenny <kennykb@acm.org> | 2005-05-10 18:33:37 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2005-05-10 18:33:37 (GMT) |
commit | 76e3b5eed61a674bce7f9c1e18380842dcff3fbf (patch) | |
tree | 2f108341f2c542f48532e6057d79bfa551a4245f /tests/compile.test | |
parent | 5b510b75ec4a1d6fb55691bcf55dbf4b0b936624 (diff) | |
download | tcl-76e3b5eed61a674bce7f9c1e18380842dcff3fbf.zip tcl-76e3b5eed61a674bce7f9c1e18380842dcff3fbf.tar.gz tcl-76e3b5eed61a674bce7f9c1e18380842dcff3fbf.tar.bz2 |
Merged kennykb-numerics-branch back to the head; TIPs 132 and 232
Diffstat (limited to 'tests/compile.test')
-rw-r--r-- | tests/compile.test | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/compile.test b/tests/compile.test index 4cdc3be..1c774c4 100644 --- a/tests/compile.test +++ b/tests/compile.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: compile.test,v 1.37 2005/04/29 20:49:44 dgp Exp $ +# RCS: @(#) $Id: compile.test,v 1.38 2005/05/10 18:35:18 kennykb Exp $ package require tcltest 2 namespace import -force ::tcltest::* @@ -257,14 +257,14 @@ test compile-11.6 {Tcl_Append*: ensure Tcl_ResetResult is used properly} { proc p {} { set r [list foobar] ; incr foo bogus } list [catch {p} msg] $msg } {1 {expected integer but got "bogus"}} -test compile-11.7 {Tcl_Append*: ensure Tcl_ResetResult is used properly} { +test compile-11.7 {Tcl_Append*: ensure Tcl_ResetResult is used properly} -body { proc p {} { set r [list foobar] ; expr !a } list [catch {p} msg] $msg -} {1 {syntax error in expression "!a": variable references require preceding $}} -test compile-11.8 {Tcl_Append*: ensure Tcl_ResetResult is used properly} { +} -match glob -result {1 {syntax error in expression "!a": * preceding $*}} +test compile-11.8 {Tcl_Append*: ensure Tcl_ResetResult is used properly} -body { proc p {} { set r [list foobar] ; expr {!a} } list [catch {p} msg] $msg -} {1 {syntax error in expression "!a": variable references require preceding $}} +} -match glob -result {1 {syntax error in expression "!a": * preceding $*}} test compile-11.9 {Tcl_Append*: ensure Tcl_ResetResult is used properly} { proc p {} { set r [list foobar] ; llength "\{" } list [catch {p} msg] $msg @@ -320,7 +320,7 @@ test compile-12.3 {check for a buffer overrun} -body { crash } -returnCodes error -cleanup { rename crash {} -} -result {syntax error in expression "a+2": variable references require preceding $} +} -match glob -result {syntax error in expression "a+2": * preceding $*} test compile-12.4 {TclCleanupLiteralTable segfault} -body { # Tcl Bug 1001997 # Here, we're trying to test a case that causes a crash in |