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
16
Examples/test-suite/perl5/director_extend_runme.pl
Normal file
16
Examples/test-suite/perl5/director_extend_runme.pl
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 5;
|
||||
BEGIN { use_ok 'director_extend' }
|
||||
require_ok 'director_extend';
|
||||
|
||||
{
|
||||
package MyObject;
|
||||
use base 'director_extend::SpObject';
|
||||
sub getFoo { 123 }
|
||||
}
|
||||
|
||||
my $m = MyObject->new();
|
||||
isa_ok $m, 'MyObject';
|
||||
is($m->dummy(), 666, '1st call');
|
||||
is($m->dummy(), 666, '2nd call');
|
||||
Loading…
Add table
Add a link
Reference in a new issue