diff options
author | Steve Bennett <steveb@workware.net.au> | 2016-10-05 19:33:25 +1000 |
---|---|---|
committer | Steve Bennett <steveb@workware.net.au> | 2016-10-05 19:33:25 +1000 |
commit | ea1229306c4b99fa2b1a1a4081904d1e4b139443 (patch) | |
tree | 73238ee427ca0ba2dec18bdb011b410ad33d8231 /tests/dict2.test | |
parent | 890be1129b7f65c1a1840ee4fa89c07b13a360a6 (diff) | |
download | jimtcl-ea1229306c4b99fa2b1a1a4081904d1e4b139443.zip jimtcl-ea1229306c4b99fa2b1a1a4081904d1e4b139443.tar.gz jimtcl-ea1229306c4b99fa2b1a1a4081904d1e4b139443.tar.bz2 |
dict: dict replace with one arg is not stable
Fix dict2.test/dict-4.1
Even with no key/values given, the order of the returned dictionary
is not guaranteed.
Reported-by: Evan Hunter <evan@ozhiker.com>
Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/dict2.test')
-rw-r--r-- | tests/dict2.test | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/dict2.test b/tests/dict2.test index 2e9bcd4..91e88a6 100644 --- a/tests/dict2.test +++ b/tests/dict2.test @@ -126,7 +126,7 @@ test dict-3.18 {array set non-dict get command} -constraints jim -returnCodes er } -result {missing value to go with key} test dict-4.1 {dict replace command} { - dict replace {a b c d} + dict-sort [dict replace {a b c d}] } {a b c d} test dict-4.2 {dict replace command} { dict-sort [dict replace {a b c d} e f] |