diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-02-01 14:53:48 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2017-02-01 14:53:48 (GMT) |
commit | 8259c261067c140fd2db07d72c8eb9883b949aa0 (patch) | |
tree | 5396984be616abc08e0d86c583616769944a631c /tests/expr.test | |
parent | a5fff7a94743517ada1b332a259ccfa63bb89570 (diff) | |
parent | 304de510732b5bf301c6d97ca26f876dca26886e (diff) | |
download | tcl-8259c261067c140fd2db07d72c8eb9883b949aa0.zip tcl-8259c261067c140fd2db07d72c8eb9883b949aa0.tar.gz tcl-8259c261067c140fd2db07d72c8eb9883b949aa0.tar.bz2 |
Fix [d0f7ba56f0e8f93b7efb5b09ebc30a824bdd577a|d0f7ba56f0]: INST_EQ first-argument NaN shortcut is too aggressive
Diffstat (limited to 'tests/expr.test')
-rw-r--r-- | tests/expr.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/expr.test b/tests/expr.test index 4c03262..5843b49 100644 --- a/tests/expr.test +++ b/tests/expr.test @@ -910,6 +910,15 @@ test expr-22.9 {non-numeric floats: shared object equality and NaN} { set x NaN expr {$x == $x} } 0 +# Make sure [Bug d0f7ba56f0] stays fixed. +test expr-22.10 {non-numeric arguments: equality and NaN} { + set x NaN + expr {$x > "Gran"} +} 1 +test expr-22.11 {non-numeric arguments: equality and NaN} { + set x NaN + expr {"Gran" < $x} +} 1 # Tests for exponentiation handling test expr-23.1 {CompileExponentialExpr: just exponential expr} {expr 4**2} 16 |