summaryrefslogtreecommitdiffstats
path: root/tests/autoMkindex.tcl
diff options
context:
space:
mode:
authorwelch <welch>1999-03-31 18:58:50 (GMT)
committerwelch <welch>1999-03-31 18:58:50 (GMT)
commit138f850c5c80e0a68bc816f78ed3cbd635802374 (patch)
tree53838ccd54d372bc8fdd683ce74aa83dccd2a4ff /tests/autoMkindex.tcl
parent7ac30eabf1a5c6436918baa410ad234415062814 (diff)
downloadtcl-138f850c5c80e0a68bc816f78ed3cbd635802374.zip
tcl-138f850c5c80e0a68bc816f78ed3cbd635802374.tar.gz
tcl-138f850c5c80e0a68bc816f78ed3cbd635802374.tar.bz2
Added tests for auto_mkindex_parser quoting problems, BUGID 1657
Diffstat (limited to 'tests/autoMkindex.tcl')
-rw-r--r--tests/autoMkindex.tcl21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/autoMkindex.tcl b/tests/autoMkindex.tcl
index 7a72fbe..2756358 100644
--- a/tests/autoMkindex.tcl
+++ b/tests/autoMkindex.tcl
@@ -50,3 +50,24 @@ namespace eval buried {
proc ::buried::explicit {args} {return "explicit: $args"}
}
}
+
+# With proper hooks, we should be able to support other commands
+# that create procedures
+
+proc buried::myproc {name body args} {
+ ::proc $name $body $args
+}
+namespace eval ::buried {
+ proc mycmd1 args {return "mycmd"}
+ myproc mycmd2 args {return "mycmd"}
+}
+::buried::myproc mycmd3 args {return "another"}
+
+proc {buried::my proc} {name body args} {
+ ::proc $name $body $args
+}
+namespace eval ::buried {
+ proc mycmd4 args {return "mycmd"}
+ {my proc} mycmd5 args {return "mycmd"}
+}
+{::buried::my proc} mycmd6 args {return "another"}