tagged release 0.6.4
[parrot.git] / languages / tcl / t / cmd_exit.t
blob5c967decb67e9455b01730fd2e601d9a657f8bbe
1 #!perl
3 # Copyright (C) 2004-2006, The Perl Foundation.
4 # $Id$
6 use strict;
7 use warnings;
8 use lib qw(tcl/lib ./lib ../lib ../../lib ../../../lib);
10 use Parrot::Test tests => 3;
11 use Test::More;
13 language_output_is( "tcl", <<'TCL', <<OUT, "noarg" );
14  puts here
15  exit
16  puts nothere
17 TCL
18 here
19 OUT
21 language_output_is( "tcl", <<'TCL', <<OUT, "bad arg" );
22  exit bork
23 TCL
24 expected integer but got "bork"
25 OUT
27 language_output_is( "tcl", <<'TCL', <<OUT, "too many args" );
28  exit bork me
29 TCL
30 wrong # args: should be "exit ?returnCode?"
31 OUT
33 # (RT#40777): should check return value of exit, also
35 # Local Variables:
36 #   mode: cperl
37 #   cperl-indent-level: 4
38 #   fill-column: 100
39 # End:
40 # vim: expandtab shiftwidth=4: