steals python directors and adapts to perl5
This commit is contained in:
parent
c151a0d69a
commit
0901a3e867
23 changed files with 1741 additions and 5 deletions
17
Examples/test-suite/perl5/director_unroll_runme.pl
Normal file
17
Examples/test-suite/perl5/director_unroll_runme.pl
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 3;
|
||||
BEGIN { use_ok 'director_unroll' };
|
||||
require_ok 'director_unroll';
|
||||
|
||||
{
|
||||
package MyFoo;
|
||||
use base 'director_unroll::Foo';
|
||||
sub ping { "MyFoo::ping()" }
|
||||
}
|
||||
|
||||
$a = MyFoo->new();
|
||||
$b = director_unroll::Bar->new();
|
||||
$b->set($a);
|
||||
my $c = $b->get();
|
||||
is(${$a->this}, ${$c->this}, "unrolling");
|
||||
Loading…
Add table
Add a link
Reference in a new issue