diff --git t/dynpmc/foo2.t t/dynpmc/foo2.t
index 4a0dadf..8bd23a4 100644
|
|
|
|
| 1 | | #! perl |
| 2 | | # Copyright (C) 2005, Parrot Foundation. |
| | 1 | #! parrot |
| | 2 | # Copyright (C) 2001-2009, Parrot Foundation. |
| 3 | 3 | # $Id$ |
| 4 | 4 | |
| 5 | | use strict; |
| 6 | | use warnings; |
| 7 | | use lib qw( . lib ../lib ../../lib ); |
| 8 | | use Test::More; |
| 9 | | use Parrot::Test tests => 1; |
| 10 | | use Parrot::Config; |
| 11 | | |
| 12 | 5 | =head1 NAME |
| 13 | 6 | |
| 14 | | t/dynpmc/foo.t - Test for a very simple dynamic PMC |
| | 7 | t/dynpmc/foo2.t - Test for a very simple dynamic PMC |
| 15 | 8 | |
| 16 | 9 | =head1 SYNOPSIS |
| 17 | 10 | |
| 18 | | % prove t/dynpmc/foo.t |
| | 11 | % prove t/dynpmc/foo2.t |
| 19 | 12 | |
| 20 | 13 | =head1 DESCRIPTION |
| 21 | 14 | |
| … |
… |
|
| 23 | 16 | |
| 24 | 17 | =cut |
| 25 | 18 | |
| 26 | | pir_output_is( << 'CODE', << 'OUTPUT', "dynpmcs can use SUPER to call parent dynpmc VTABLE functions" ); |
| 27 | | |
| 28 | 19 | .sub main :main |
| | 20 | .include 'test_more.pir' |
| | 21 | plan(1) |
| | 22 | |
| | 23 | test_dynpmcs_can_use_super() |
| | 24 | .end |
| | 25 | |
| | 26 | .sub test_dynpmcs_can_use_super |
| 29 | 27 | $P0 = loadlib 'foo_group' |
| 30 | 28 | $P1 = new "Foo2" |
| 31 | 29 | |
| 32 | 30 | $I1 = $P1 |
| 33 | | say $I1 |
| | 31 | is($I1, 43, 'dynpmcs can use SUPER to call parent dynpmc VTABLE functions') |
| 34 | 32 | .end |
| 35 | | CODE |
| 36 | | 43 |
| 37 | | OUTPUT |
| 38 | 33 | |
| 39 | 34 | # Local Variables: |
| 40 | 35 | # mode: cperl |
| 41 | 36 | # cperl-indent-level: 4 |
| 42 | 37 | # fill-column: 100 |
| 43 | 38 | # End: |
| 44 | | # vim: expandtab shiftwidth=4: |
| | 39 | # vim: expandtab shiftwidth=4: filetype=pir: |