aboutsummaryrefslogtreecommitdiff
path: root/tests/pack.test
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2020-05-31 17:31:55 +1000
committerSteve Bennett <steveb@workware.net.au>2020-06-05 21:13:11 +1000
commitd4cd7cabc6359bf5e1af8ce0219e621ae0ec3d86 (patch)
tree98d160b6903044aaf50d7595b078b1d8ab3276bd /tests/pack.test
parentfdefefa4e655be612df2ac036d57223b8c9cbc0a (diff)
downloadjimtcl-d4cd7cabc6359bf5e1af8ce0219e621ae0ec3d86.zip
jimtcl-d4cd7cabc6359bf5e1af8ce0219e621ae0ec3d86.tar.gz
jimtcl-d4cd7cabc6359bf5e1af8ce0219e621ae0ec3d86.tar.bz2
core: variable names may now contain embedded nulls
Hash tables used to store variables are now use Jim_Obj keys rather than allocated char *, so embedded nulls are supported. This is generally a performance win as the existing Jim_Obj can be used as the key. Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'tests/pack.test')
-rw-r--r--tests/pack.test2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/pack.test b/tests/pack.test
index 0ce16cd..d059087 100644
--- a/tests/pack.test
+++ b/tests/pack.test
@@ -66,7 +66,7 @@ test pack-2.7 {pack bad set} -body {
test pack-2.8 {pack bad set} -body {
pack bad\x00var 32 -intle 8
-} -returnCodes error -result {variable name contains embedded null}
+} -returnCodes ok -result {8}
test unpack-1.1 {unpack usage} -body {
unpack