summaryrefslogtreecommitdiffstats
path: root/tests/pkgMkIndex.test
diff options
context:
space:
mode:
authorericm <ericm>2000-01-28 19:32:05 (GMT)
committerericm <ericm>2000-01-28 19:32:05 (GMT)
commitc6f3f1f2051c0e0663480e2fb858e9436d3adcc4 (patch)
treee119b7d215c6e3228881c14c93a9d2d0537711e9 /tests/pkgMkIndex.test
parent7f1780c6f594cd00f51e77b191d7659f31e84743 (diff)
downloadtcl-c6f3f1f2051c0e0663480e2fb858e9436d3adcc4.zip
tcl-c6f3f1f2051c0e0663480e2fb858e9436d3adcc4.tar.gz
tcl-c6f3f1f2051c0e0663480e2fb858e9436d3adcc4.tar.bz2
* tests/pkg/spacename.tcl:
* tests/pkgMkIndex.test: Tests for fix for bug #2360. * library/package.tcl: Fixed to extract only the first element of the list returned by auto_qualify (bug #2360).
Diffstat (limited to 'tests/pkgMkIndex.test')
-rw-r--r--tests/pkgMkIndex.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/pkgMkIndex.test b/tests/pkgMkIndex.test
index 664505c..cc37f4f 100644
--- a/tests/pkgMkIndex.test
+++ b/tests/pkgMkIndex.test
@@ -8,7 +8,7 @@
# Copyright (c) 1998-1999 by Scriptics Corporation.
# All rights reserved.
#
-# RCS: @(#) $Id: pkgMkIndex.test,v 1.14 2000/01/27 19:48:30 ericm Exp $
+# RCS: @(#) $Id: pkgMkIndex.test,v 1.15 2000/01/28 19:32:05 ericm Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -356,6 +356,12 @@ test pkgMkIndex-12.1 {same name procs in different namespace} {
pkgtest::runIndex -lazy $fullPkgPath samename.tcl
} {0 {{football:1.0 {tclPkgSetup {samename.tcl source {::college::team ::pro::team}}}}}}
+# Proc names with embedded spaces are properly listed (ie, correct number of
+# braces) in result
+test pkgMkIndex-13.1 {proc names with embedded spaces} {
+ pkgtest::runIndex -lazy $fullPkgPath spacename.tcl
+} {0 {{spacename:1.0 {tclPkgSetup {spacename.tcl source {{a b} {c d}}}}}}}
+
# cleanup
namespace delete pkgtest