3 # Copyright (C) 2004-2006, The Perl Foundation.
6 # the following lines re-execute this as a tcl script
7 # the \ at the end of these lines makes them a comment in tcl \
8 use lib qw(languages/tcl/lib tcl/lib lib ../lib ../../lib); # \
12 source lib/test_more.tcl
50 } 5 {explicit positive offset}
56 } {wrong # args: should be "incr varName ?increment?"} {too many args}
62 } {wrong # args: should be "incr varName ?increment?"} {too few args}
67 } {expected integer but got "a"} {expected integer, got alpha}
69 # This test fails in tclsh8.5a5:
70 # https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1602991&group_id=10894
74 } {expected integer but got "1.5"} {expected integer, got float}
76 # as of 8.5, this autovivifies the variable
80 } 1 {no such variable}
83 # Uses the same parsing mechanism as
84 # [expr <octal>] - all the edge cases are tested there.
94 } {expected integer but got "foo"} {not an int}
100 } 15 {space padded int}
110 # cperl-indent-level: 4
113 # vim: expandtab shiftwidth=4: