PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/perl5/inherit_missing_runme.pl

#
Perl | 20 lines | 12 code | 6 blank | 2 comment | 0 complexity | cd93faead1f015d5d724cafa03b7dba9 MD5 | raw file
 1#!/usr/bin/perl
 2use strict;
 3use warnings;
 4use Test::More tests => 5;
 5BEGIN { use_ok('inherit_missing') }
 6require_ok('inherit_missing');
 7
 8# adapted from ../python/inherit_missing_runme.py
 9
10my $a = inherit_missing::new_Foo();
11my $b = inherit_missing::Bar->new();
12my $c = inherit_missing::Spam->new();
13
14is(inherit_missing::do_blah($a), "Foo::blah");
15
16is(inherit_missing::do_blah($b), "Bar::blah");
17
18is(inherit_missing::do_blah($c), "Spam::blah");
19
20inherit_missing::delete_Foo($a);