* src/pmc/scalar.pmc:
[parrot.git] / t / pmc / stmref.t
blobb36113a9a458d4bac0418980562526aa8fccdfa4
1 #! parrot
2 # Copyright (C) 2007, The Perl Foundation.
3 # $Id$
5 =head1 NAME
7 t/pmc/stmref.t - test the STMRef PMC
9 =head1 SYNOPSIS
11     % prove t/pmc/stmref.t
13 =head1 DESCRIPTION
15 Tests the STMRef PMC.
17 =cut
19 .sub main :main
20     # load this library
21     load_bytecode 'library/Test/More.pir'
23     # get the testing functions
24     .local pmc exports, curr_namespace, test_namespace
25     curr_namespace = get_namespace
26     test_namespace = get_namespace [ "Test::More" ]
27     exports = split " ", "plan diag ok is is_deeply like isa_ok"
29     test_namespace."export_to"(curr_namespace, exports)
31     plan(1)
33     new P0, .STMRef
34     ok(1, 'Instantiated .STMRef')
35 .end
37 # Local Variables:
38 #   mode: cperl
39 #   cperl-indent-level: 4
40 #   fill-column: 100
41 # End:
42 # vim: expandtab shiftwidth=4: