diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2018-09-27 08:22:07 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2018-09-27 08:22:07 (GMT) |
commit | ab90d5da6078b001550e9de9b5d44c020bcdda30 (patch) | |
tree | 1205f3b9d15db48fa516b96342dcb33e92bff7f3 /tests | |
parent | 8e5f19f6144bd17c39e50f683652fdb4abe881c4 (diff) | |
parent | 3da20064097a15fd39dae780a795e7ee27fbfd3a (diff) | |
download | tcl-ab90d5da6078b001550e9de9b5d44c020bcdda30.zip tcl-ab90d5da6078b001550e9de9b5d44c020bcdda30.tar.gz tcl-ab90d5da6078b001550e9de9b5d44c020bcdda30.tar.bz2 |
Implementation of TIP 505: Make [lreplace] Accept All Out-of-Range Index Values
Diffstat (limited to 'tests')
-rw-r--r-- | tests/lreplace.test | 8 |
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 {} { |