summaryrefslogtreecommitdiffstats
path: root/tests/expr.test
diff options
context:
space:
mode:
authorKevin B Kenny <kennykb@acm.org>2005-08-05 18:50:20 (GMT)
committerKevin B Kenny <kennykb@acm.org>2005-08-05 18:50:20 (GMT)
commit33f99a107c785f2a316908111b390ec9bed82a6a (patch)
tree198e2c38a17a43259d35c7f36b254a93b0182e76 /tests/expr.test
parentc411bb62c886240f5cbd8f59c5c3c8ff5c9f5754 (diff)
downloadtcl-33f99a107c785f2a316908111b390ec9bed82a6a.zip
tcl-33f99a107c785f2a316908111b390ec9bed82a6a.tar.gz
tcl-33f99a107c785f2a316908111b390ec9bed82a6a.tar.bz2
Handle abs(-0x80000000) [Bug 1241572]
Diffstat (limited to 'tests/expr.test')
-rw-r--r--tests/expr.test6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/expr.test b/tests/expr.test
index 1aad141..89ac635 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.37 2005/07/28 18:42:28 dgp Exp $
+# RCS: @(#) $Id: expr.test,v 1.38 2005/08/05 18:50:30 kennykb Exp $
if {[lsearch [namespace children] ::tcltest] == -1} {
package require tcltest 2.1
@@ -6453,6 +6453,10 @@ test expr-37.14 {expr edge cases} {wideIs64bit} {
} {1 * -9223372036854775806 + -2 = -9223372036854775808}
+test expr-38.1 {abs of smallest 32-bit integer [Bug 1241572]} {wideIs64bit} {
+ expr {abs(-2147483648)}
+} 2147483648
+
# cleanup
if {[info exists a]} {
unset a