summaryrefslogtreecommitdiffstats
path: root/tests/binary.test
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-11-09 13:41:21 (GMT)
committernijtmans <nijtmans>2010-11-09 13:41:21 (GMT)
commite273f7c5f47b379319dcb0d1d97f848ff13ee15d (patch)
tree8d306876dabff862ba85fc692e379250d0a98507 /tests/binary.test
parent286f3f218b1644b152d724ce7b9d6ec705af63cb (diff)
downloadtcl-e273f7c5f47b379319dcb0d1d97f848ff13ee15d.zip
tcl-e273f7c5f47b379319dcb0d1d97f848ff13ee15d.tar.gz
tcl-e273f7c5f47b379319dcb0d1d97f848ff13ee15d.tar.bz2
Added test case for [Bug #3105247] -NaN?
Diffstat (limited to 'tests/binary.test')
-rw-r--r--tests/binary.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/binary.test b/tests/binary.test
index 79fdb92..6b1f0f7 100644
--- a/tests/binary.test
+++ b/tests/binary.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution of
# this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: binary.test,v 1.41 2010/09/15 22:12:00 dkf Exp $
+# RCS: @(#) $Id: binary.test,v 1.42 2010/11/09 13:41:21 nijtmans Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -1583,6 +1583,10 @@ test binary-40.4 {ScanNumber: NaN} -body {
unset -nocomplain arg1
list [binary scan \xff\xff\xff\xff\xff\xff\xff\xff d arg1] $arg1
} -match glob -result {1 -NaN*}
+test binary-40.5 {ScanNumber: -NaN} -body {
+ unset -nocomplain arg1
+ list [binary scan \x00\x00\x00\x00\x00\x00\xf8\xff d arg1] $arg1
+} -match glob -result {1 -NaN}
test binary-41.1 {ScanNumber: word alignment} {
unset -nocomplain arg1; unset arg2