summaryrefslogtreecommitdiffstats
path: root/tests/assocd.test
diff options
context:
space:
mode:
authordgp@users.sourceforge.net <dgp>2013-02-25 14:55:17 (GMT)
committerdgp@users.sourceforge.net <dgp>2013-02-25 14:55:17 (GMT)
commit317d24b51f1c5553e3a4af0fbff8f55a187d2f80 (patch)
tree9455396a4e9d2cd847e2d897472613c4b1b8f072 /tests/assocd.test
parent971bfcaadf4e78d8cca1e2037c120953ec455d77 (diff)
parent8134de3afa646c21024098a7920a85f42a7957d7 (diff)
downloadtcl-317d24b51f1c5553e3a4af0fbff8f55a187d2f80.zip
tcl-317d24b51f1c5553e3a4af0fbff8f55a187d2f80.tar.gz
tcl-317d24b51f1c5553e3a4af0fbff8f55a187d2f80.tar.bz2
3605719,3605720 Test independence. Thanks Rolf Ade for patches.
Diffstat (limited to 'tests/assocd.test')
-rw-r--r--tests/assocd.test22
1 files changed, 14 insertions, 8 deletions
diff --git a/tests/assocd.test b/tests/assocd.test
index b543c64..edf55c4 100644
--- a/tests/assocd.test
+++ b/tests/assocd.test
@@ -34,15 +34,21 @@ test assocd-1.4 {testing setting assoc data} testsetassocdata {
testsetassocdata abc "abc d e f"
} ""
-test assocd-2.1 {testing getting assoc data} testgetassocdata {
- testgetassocdata a
-} 2
-test assocd-2.2 {testing getting assoc data} testgetassocdata {
- testgetassocdata 123
-} 456
-test assocd-2.3 {testing getting assoc data} testgetassocdata {
+test assocd-2.1 {testing getting assoc data} -setup {
+ testsetassocdata a 2
+} -constraints {testgetassocdata} -body {
+ testgetassocdata a
+} -result 2
+test assocd-2.2 {testing getting assoc data} -setup {
+ testsetassocdata 123 456
+} -constraints {testgetassocdata} -body {
+ testgetassocdata 123
+} -result 456
+test assocd-2.3 {testing getting assoc data} -setup {
+ testsetassocdata abc "abc d e f"
+} -constraints {testgetassocdata} -body {
testgetassocdata abc
-} {abc d e f}
+} -result "abc d e f"
test assocd-2.4 {testing getting assoc data} testgetassocdata {
testgetassocdata xxx
} ""