diff options
author | dgp <dgp@users.sourceforge.net> | 2018-03-08 19:28:58 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2018-03-08 19:28:58 (GMT) |
commit | b8b87e52802d476aa5e7d6796ff233f89cf0156b (patch) | |
tree | 250bf98375196efec55fd0d94ba6a74cd7d9824e /tests/lreplace.test | |
parent | 0c5bd7480ec59acdb0b66d61e8efbec87ff38f0a (diff) | |
download | tcl-b8b87e52802d476aa5e7d6796ff233f89cf0156b.zip tcl-b8b87e52802d476aa5e7d6796ff233f89cf0156b.tar.gz tcl-b8b87e52802d476aa5e7d6796ff233f89cf0156b.tar.bz2 |
New test expose flaw in error ordering.
Diffstat (limited to 'tests/lreplace.test')
-rw-r--r-- | tests/lreplace.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/lreplace.test b/tests/lreplace.test index 392e84d..7377869 100644 --- a/tests/lreplace.test +++ b/tests/lreplace.test @@ -104,6 +104,9 @@ test lreplace-1.27 {lreplace command} -body { test lreplace-1.28 {lreplace command} -body { lreplace x 1 1 y } -returnCodes 1 -result {list doesn't contain element 1} +test lreplace-1.29 {lreplace command} -body { + lreplace x 1 1 [error foo] +} -returnCodes 1 -result {foo} test lreplace-2.1 {lreplace errors} { list [catch lreplace msg] $msg |