* t/op/lexicals-2.t (added), MANIFEST:
[parrot.git] / t / op / load_bytecode.t
blob943c5286b1d292e4423c86841a955fd263c6b625
1 #!perl
2 # Copyright (C) 2006-2007, The Perl Foundation.
3 # $Id$
5 use strict;
6 use warnings;
7 use lib qw( . lib ../lib ../../lib );
8 use Test::More;
9 use Parrot::Test tests => 2;
11 =head1 NAME
13 t/op/load_bytecode.t - loading bytecode tests
15 =head1 SYNOPSIS
17         % prove t/op/load_bytecode.t
19 =head1 DESCRIPTION
21 Tests the C<load_bytecode> operation.
23 =cut
25 pir_error_output_like( <<'CODE', <<'OUTPUT', "load_bytecode on directory" );
26 .sub main :main
27     load_bytecode 't'
28 .end
29 CODE
30 /t' is a directory/
31 OUTPUT
33 pir_error_output_like( <<'CODE', <<'OUTPUT', "load_bytecode on non-existent file" );
34 .sub main :main
35         load_bytecode 'no_file_by_this_name'
36 .end
37 CODE
38 /"load_bytecode" couldn't find file 'no_file_by_this_name'/
39 OUTPUT
41 # Local Variables:
42 #   mode: cperl
43 #   cperl-indent-level: 4
44 #   fill-column: 100
45 # End:
46 # vim: expandtab shiftwidth=4: