diff options
author | dkf <dkf@noemail.net> | 2003-04-28 12:34:21 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2003-04-28 12:34:21 (GMT) |
commit | ff0d863b9066caea8eda658fda9f98cc44913de9 (patch) | |
tree | a7dfc6ac4db8ceaa9a7d3fceccf59bbe274caa74 /tests/incr.test | |
parent | 3205f51769d054615b4f955c77548643a133b9d4 (diff) | |
download | tcl-ff0d863b9066caea8eda658fda9f98cc44913de9.zip tcl-ff0d863b9066caea8eda658fda9f98cc44913de9.tar.gz tcl-ff0d863b9066caea8eda658fda9f98cc44913de9.tar.bz2 |
Made [incr] able to accept and work with wide increments [Bug 728838]
FossilOrigin-Name: 32ebb362aece5545d4dbc2e829b8795d8cade7b5
Diffstat (limited to 'tests/incr.test')
-rw-r--r-- | tests/incr.test | 24 |
1 files changed, 11 insertions, 13 deletions
diff --git a/tests/incr.test b/tests/incr.test index 5f3a633..309b757 100644 --- a/tests/incr.test +++ b/tests/incr.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: incr.test,v 1.8 2003/02/07 01:07:05 mdejong Exp $ +# RCS: @(#) $Id: incr.test,v 1.9 2003/04/28 12:34:33 dkf Exp $ if {[lsearch [namespace children] ::tcltest] == -1} { package require tcltest @@ -516,18 +516,16 @@ test incr-2.31 {incr command (compiled): bad increment} { invoked from within "incr x 1a"}} +test incr-3.1 {increment by wide amount: bytecode route} { + set x 0 + incr x 123123123123 +} 123123123123 +test incr-3.2 {increment by wide amount: command route} { + set z incr + set x 0 + $z x 123123123123 +} 123123123123 + # cleanup ::tcltest::cleanupTests return - - - - - - - - - - - - |