From 32aaf34bbd02fa2cb7af68ae09520e56b008fa37 Mon Sep 17 00:00:00 2001 From: nijtmans Date: Tue, 9 Nov 2010 13:41:21 +0000 Subject: Added test case for [Bug #3105247] -NaN? --- ChangeLog | 4 ++++ tests/binary.test | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e4cb0db..95bc892 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-11-09 Jan Nijtmans + + * tests/binary.test: Added test case for [Bug #3105247] -NaN? + 2010-11-05 Jan Nijtmans * generic/tclMain.c: Thanks, Kevin, for the fix, but this how it was 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 -- cgit v0.12