summaryrefslogtreecommitdiffstats
path: root/tests/dict.test
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2003-07-24 16:05:22 (GMT)
committerdgp <dgp@users.sourceforge.net>2003-07-24 16:05:22 (GMT)
commitdb3db9df91cdc7d1b0bdac6c9c927765ce9afd95 (patch)
tree829c6228c7d8db111e9b0b193de20a6c182b21be /tests/dict.test
parent69bc2d2dcd6bd96a75ea42e0fdb1c23fc1054390 (diff)
downloadtcl-db3db9df91cdc7d1b0bdac6c9c927765ce9afd95.zip
tcl-db3db9df91cdc7d1b0bdac6c9c927765ce9afd95.tar.gz
tcl-db3db9df91cdc7d1b0bdac6c9c927765ce9afd95.tar.bz2
* tests/async.test: Added several tests that demonstrate Tcl
* tests/basic.test: Bug 489537, Tcl's longstanding failure to * tests/dict.test: properly quote any leading '#' character * tests/dstring.test: when generating the string rep of a list * tests/list.test: so that the comment-power of that character * tests/parse.test: is hidden from any [eval], in order to * tests/util.test: satisfy the documentation that [list] does [eval]-safe quoting.
Diffstat (limited to 'tests/dict.test')
-rw-r--r--tests/dict.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/dict.test b/tests/dict.test
index d139c54..f9c5c5a 100644
--- a/tests/dict.test
+++ b/tests/dict.test
@@ -9,7 +9,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: dict.test,v 1.2 2003/04/07 10:12:12 dkf Exp $
+# RCS: @(#) $Id: dict.test,v 1.3 2003/07/24 16:05:24 dgp Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -70,6 +70,12 @@ test dict-2.6 {dict create command - initialse refcount field!} {
list [dict incr dictv a]
}
} {}
+test dict-2.7 {dict create command - #-quoting in string rep} {
+ dict create # #comment
+} {{#} #comment}
+test dict-2.8 {dict create command - #-quoting in string rep} -body {
+ dict create #a x #b x
+} -match glob -result {{#?} x #? x}
test dict-3.1 {dict get command} {dict get {a b} a} b
test dict-3.2 {dict get command} {dict get {a b c d} a} b