1 source [file dirname [info script]]/testing.tcl
4 testConstraint lambda [expr {[info commands lambda] ne {}}]
6 test exists-1.1 "Exists var" {
11 test exists-1.1 "Exists var" {
16 test exists-1.1 "Exists -var" {
20 test exists-1.1 "Exists -var" {
24 test exists-1.1 "Exists in proc" {
25 proc a {name} { exists $name }
29 test exists-1.1 "Exists in proc" {
33 test exists-1.1 "Exists in proc" {
37 test exists-1.1 "Exists in proc" {
41 test exists-1.1 "Exists -proc" {
45 test exists-1.1 "Exists -proc" {
49 test exists-1.1 "Exists -proc" {
53 test exists-1.1 "Exists -command" {
57 test exists-1.1 "Exists -command" {
61 test exists-1.1 "Exists -command" {
65 test exists-1.1 "Exists local lambda after exit" lambda {
67 local lambda {} {dummy}
72 test exists-1.1 "Exists local lambda" lambda {
74 exists -proc [local lambda {} {dummy}]