diff options
Diffstat (limited to 'Examples/test-suite/perl5/multiple_inheritance_runme.pl')
| -rw-r--r-- | Examples/test-suite/perl5/multiple_inheritance_runme.pl | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Examples/test-suite/perl5/multiple_inheritance_runme.pl b/Examples/test-suite/perl5/multiple_inheritance_runme.pl new file mode 100644 index 0000000..1d913ff --- /dev/null +++ b/Examples/test-suite/perl5/multiple_inheritance_runme.pl @@ -0,0 +1,12 @@ +use strict; +use warnings; +use Test::More tests => 5; +BEGIN { use_ok('multiple_inheritance') } +require_ok('multiple_inheritance'); + +my $fooBar = new multiple_inheritance::FooBar(); +is($fooBar->foo(), 2, "Runtime test1"); + +is($fooBar->bar(), 1, "Runtime test2"); + +is($fooBar->fooBar(), 3, "Runtime test3 "); |
