3 # Copyright (C) 2004-2007, The Perl Foundation.
8 use lib qw(tcl/lib ./lib ../lib ../../lib ../../../lib);
10 use Parrot::Test tests => 9;
13 language_output_is( "tcl", <<'TCL', <<OUT, "rename" );
21 language_output_is( "tcl", <<'TCL', <<OUT, "remove" );
25 invalid command name "puts"
28 language_output_is( "tcl", <<'TCL', <<'OUT', "rename non-existant command" );
31 can't rename "foo": command doesn't exist
34 language_output_is( "tcl", <<'TCL', <<'OUT', "delete non-existant command" );
37 can't delete "foo": command doesn't exist
40 language_output_is( 'tcl', <<'TCL', <<'OUT', 'new command already exists' );
43 can't rename to "incr": command already exists
46 language_output_is( "tcl",
47 <<'TCL', <<'OUT', "test fallback to interpreted versions of normally inlined commands." );
57 language_output_is( "tcl", <<'TCL', <<'OUT', "delete inlined sub" );
65 invalid command name "incr"
68 language_output_is( "tcl", <<'TCL', <<'OUT', "rename inlined sub" );
77 language_output_is( "tcl", <<'TCL', <<'OUT', "rename in a namespace" );
78 proc puts2 {args} {puts {*}$args}
81 proc puts2 {args} {puts "HELLO WORLD"}
102 # cperl-indent-level: 4
105 # vim: expandtab shiftwidth=4: