From b8b87e52802d476aa5e7d6796ff233f89cf0156b Mon Sep 17 00:00:00 2001 From: dgp Date: Thu, 8 Mar 2018 19:28:58 +0000 Subject: New test expose flaw in error ordering. --- tests/lreplace.test | 3 +++ 1 file changed, 3 insertions(+) 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 -- cgit v0.12