summaryrefslogtreecommitdiffstats
path: root/tests/binary.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-06-09 11:48:54 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-06-09 11:48:54 (GMT)
commit4ac08a5375ba3f55cabdefe8744e465d8f9f5e84 (patch)
tree75e5bb051f189e5c578d6c18ce644f610ecf2bba /tests/binary.test
parentf9abf48ecf1f023447fcffb2ea01493818be568d (diff)
parent54043c0ee1e2abd1f01eeb0e8795522e5d1ab4bb (diff)
downloadtcl-4ac08a5375ba3f55cabdefe8744e465d8f9f5e84.zip
tcl-4ac08a5375ba3f55cabdefe8744e465d8f9f5e84.tar.gz
tcl-4ac08a5375ba3f55cabdefe8744e465d8f9f5e84.tar.bz2
merge novem
Diffstat (limited to 'tests/binary.test')
-rw-r--r--tests/binary.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/binary.test b/tests/binary.test
index 7738f69..1ee815b 100644
--- a/tests/binary.test
+++ b/tests/binary.test
@@ -1506,6 +1506,18 @@ test binary-37.9 {GetFormatSpec: numbers} {
binary scan $x f* bla
set bla
} {1.0 -1.0 2.0 -2.0 0.0}
+test binary-37.10 {GetFormatSpec: count overflow} {
+ binary scan x a[format %ld 0x7fffffff] r
+} 0
+test binary-37.11 {GetFormatSpec: count overflow} {
+ binary scan x a[format %ld 0x10000000] r
+} 0
+test binary-37.12 {GetFormatSpec: count overflow} {
+ binary scan x a[format %ld 0x100000000] r
+} 0
+test binary-37.13 {GetFormatSpec: count overflow} {
+ binary scan x a[format %lld 0x10000000000000000] r
+} 0
test binary-38.1 {FormatNumber: word alignment} {
set x [binary format c1s1 1 1]