aboutsummaryrefslogtreecommitdiff
path: root/tests/exists.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/exists.test')
-rw-r--r--tests/exists.test5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/exists.test b/tests/exists.test
index ae35a87..11e8781 100644
--- a/tests/exists.test
+++ b/tests/exists.test
@@ -1,6 +1,7 @@
source [file dirname [info script]]/testing.tcl
needs cmd exists
+testConstraint lambda [expr {[info commands lambda] ne {}}]
test exists-1.1 "Exists var" {
set a 1
@@ -61,14 +62,14 @@ test exists-1.1 "Exists -command" {
exists -command bogus
} 0
-test exists-1.1 "Exists local lambda after exit" {
+test exists-1.1 "Exists local lambda after exit" lambda {
proc a {} {
local lambda {} {dummy}
}
exists -proc [a]
} 0
-test exists-1.1 "Exists local lambda" {
+test exists-1.1 "Exists local lambda" lambda {
proc a {} {
exists -proc [local lambda {} {dummy}]
}