diff options
author | dgp <dgp@noemail.net> | 2007-03-13 17:34:03 (GMT) |
---|---|---|
committer | dgp <dgp@noemail.net> | 2007-03-13 17:34:03 (GMT) |
commit | b19bb3bec74c0196f4e476cfa94e694ffab22ecb (patch) | |
tree | e19be9d20be4d7bafdf81c86ff6e67bcb53da56f /tests/cmdIL.test | |
parent | 92a1b4b6acc5ee718915dfa744630dbbbb54b3ca (diff) | |
download | tcl-b19bb3bec74c0196f4e476cfa94e694ffab22ecb.zip tcl-b19bb3bec74c0196f4e476cfa94e694ffab22ecb.tar.gz tcl-b19bb3bec74c0196f4e476cfa94e694ffab22ecb.tar.bz2 |
Added test for [Bug 1675044].
FossilOrigin-Name: b13b57ba58f6a84525bb1b78a27d22cd6c76ca98
Diffstat (limited to 'tests/cmdIL.test')
-rw-r--r-- | tests/cmdIL.test | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/tests/cmdIL.test b/tests/cmdIL.test index d8e956f..c9796db 100644 --- a/tests/cmdIL.test +++ b/tests/cmdIL.test @@ -8,7 +8,7 @@ # See the file "license.terms" for information on usage and redistribution # of this file, and for a DISCLAIMER OF ALL WARRANTIES. # -# RCS: @(#) $Id: cmdIL.test,v 1.32 2007/03/09 16:40:21 dkf Exp $ +# RCS: @(#) $Id: cmdIL.test,v 1.33 2007/03/13 17:34:04 dgp Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest 2 @@ -748,6 +748,23 @@ test cmdIL-7.6 {lreverse command - unshared object [Bug 1672585]} { lreverse [set x {1 2 3}][unset x] } {3 2 1} +testConstraint testobj [llength [info commands testobj]] +test cmdIL-7.7 {lreverse command - shared intrep [Bug 1675044]} -setup { + teststringobj set 1 {1 2 3} + testobj convert 1 list + testobj duplicate 1 2 + variable x [teststringobj get 1] + variable y [teststringobj get 2] + testobj freeallvars + proc K {a b} {return $a} +} -constraints testobj -body { + lreverse [K $y [unset y]] + lindex $x 0 +} -cleanup { + unset -nocomplain x y + rename K {} +} -result 1 + # cleanup ::tcltest::cleanupTests return |