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
25
Examples/test-suite/perl5/director_ignore_runme.pl
Normal file
25
Examples/test-suite/perl5/director_ignore_runme.pl
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 6;
|
||||
BEGIN { use_ok 'director_ignore' }
|
||||
require_ok 'director_ignore';
|
||||
|
||||
{
|
||||
package DIgnoresDerived;
|
||||
use base 'director_ignore::DIgnores';
|
||||
sub PublicMethod1 {
|
||||
return 18.75;
|
||||
}
|
||||
}
|
||||
{
|
||||
package DAbstractIgnoresDerived;
|
||||
use base 'director_ignore::DAbstractIgnores';
|
||||
}
|
||||
|
||||
my $a = DIgnoresDerived->new();
|
||||
isa_ok $a, 'DIgnoresDerived';
|
||||
is $a->Triple(5), 15;
|
||||
|
||||
my $b = DAbstractIgnoresDerived->new();
|
||||
isa_ok $b, 'DAbstractIgnoresDerived';
|
||||
is $b->Quadruple(5), 20;
|
||||
Loading…
Add table
Add a link
Reference in a new issue