summaryrefslogtreecommitdiffstats
path: root/tests/lreplace.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2018-10-17 20:02:16 (GMT)
committerdgp <dgp@users.sourceforge.net>2018-10-17 20:02:16 (GMT)
commitda461559312846043039c84d96a019da01f4dd06 (patch)
tree1a601db6a9ca3444d7418ec591f320756df6f58f /tests/lreplace.test
parent4252e1f99f58589cf3ab90f0d2fe8f83f48fd996 (diff)
parente154c5151281fbbe01ef1361f5f6980a5ec5a6d3 (diff)
downloadtcl-da461559312846043039c84d96a019da01f4dd06.zip
tcl-da461559312846043039c84d96a019da01f4dd06.tar.gz
tcl-da461559312846043039c84d96a019da01f4dd06.tar.bz2
merge 8.7
Diffstat (limited to 'tests/lreplace.test')
-rw-r--r--tests/lreplace.test8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/lreplace.test b/tests/lreplace.test
index 4a6b853..fd2f7f8 100644
--- a/tests/lreplace.test
+++ b/tests/lreplace.test
@@ -100,10 +100,10 @@ test lreplace-1.26 {lreplace command} {
} {a {} {}}
test lreplace-1.27 {lreplace command} -body {
lreplace x 1 1
-} -returnCodes 1 -result {list doesn't contain element 1}
+} -result x
test lreplace-1.28 {lreplace command} -body {
lreplace x 1 1 y
-} -returnCodes 1 -result {list doesn't contain element 1}
+} -result {x y}
test lreplace-1.29 {lreplace command} -body {
lreplace x 1 1 [error foo]
} -returnCodes 1 -result {foo}
@@ -128,10 +128,10 @@ test lreplace-2.5 {lreplace errors} {
} {1 {bad index "1x": must be integer?[+-]integer? or end?[+-]integer?}}
test lreplace-2.6 {lreplace errors} {
list [catch {lreplace x 3 2} msg] $msg
-} {1 {list doesn't contain element 3}}
+} {0 x}
test lreplace-2.7 {lreplace errors} {
list [catch {lreplace x 2 2} msg] $msg
-} {1 {list doesn't contain element 2}}
+} {0 x}
test lreplace-3.1 {lreplace won't modify shared argument objects} {
proc p {} {