summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2012-11-16 15:35:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2012-11-16 15:35:22 (GMT)
commit758a0f5c2e969817509e566bad7546a9d9c66a49 (patch)
tree722371c376c77a67d407c22ccea5c8b8aba2d75a /tests
parente0ad3b3ebfef863621c1cdd5ca28546b9a4caea3 (diff)
downloadtcl-758a0f5c2e969817509e566bad7546a9d9c66a49.zip
tcl-758a0f5c2e969817509e566bad7546a9d9c66a49.tar.gz
tcl-758a0f5c2e969817509e566bad7546a9d9c66a49.tar.bz2
3587651 fix [info functions] (Re-implementation in Tcl)
Diffstat (limited to 'tests')
-rw-r--r--tests/cmdIL.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/cmdIL.test b/tests/cmdIL.test
index aed4264..b387e71 100644
--- a/tests/cmdIL.test
+++ b/tests/cmdIL.test
@@ -769,6 +769,16 @@ test cmdIL-7.8 {lreverse command - shared intrep [Bug 1675044]} -setup {
rename K {}
} -result 1
+# This belongs in info test, but adding tests there breaks tests
+# that compute source file line numbers.
+test info-20.6 {Bug 3587651} -setup {
+ namespace eval my {namespace eval tcl {namespace eval mathfunc {
+ proc demo x {return 42}
+ }}}} -body { namespace eval my {expr {"demo" in [info functions]}}} -cleanup {
+ namespace delete my
+} -result 1
+
+
# cleanup
::tcltest::cleanupTests
return