diff options
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 - - - - - - - - - - - - |