summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-11-01 14:38:24 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-11-01 14:38:24 (GMT)
commit7dbcb9eb54a05922c50c4edd15bac88410020f5c (patch)
tree2652f54557f9dd05985a1dc76023378c310d9823 /tests
parent238f64e8e462d705dbf4f894f4b29933e19e865e (diff)
downloadtcl-7dbcb9eb54a05922c50c4edd15bac88410020f5c.zip
tcl-7dbcb9eb54a05922c50c4edd15bac88410020f5c.tar.gz
tcl-7dbcb9eb54a05922c50c4edd15bac88410020f5c.tar.bz2
Fix for [Bug 761471]; NaN is now *never* equal to NaN...
Diffstat (limited to 'tests')
-rw-r--r--tests/expr.test7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/expr.test b/tests/expr.test
index 9e70447..9811430 100644
--- a/tests/expr.test
+++ b/tests/expr.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: expr.test,v 1.29 2004/10/08 21:10:36 dkf Exp $
+# RCS: @(#) $Id: expr.test,v 1.30 2004/11/01 14:38:26 dkf Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest
@@ -809,6 +809,11 @@ test expr-22.7 {non-numeric floats} nonPortable {
test expr-22.8 {non-numeric floats} nonPortable {
list [catch {expr {1 / Inf}} msg] $msg
} {1 {can't use infinite floating-point value as operand of "/"}}
+# Make sure [Bug 761471] stays fixed.
+test expr-22.9 {non-numeric floats: shared object equality and NaN} {
+ set x NaN
+ expr {$x == $x}
+} 0
# Tests for exponentiation handling
test expr-23.1 {CompileExponentialExpr: just exponential expr} {expr 4**2} 16