package option for perl5

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10393 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Jason Stewart 2008-04-26 13:12:45 +00:00
commit bea5f1d47b
9 changed files with 228 additions and 66 deletions

View file

@ -12,4 +12,6 @@ adding a new test to this suite, please use Test::More.
Currently converted test cases include:
* operator_overload
* operator_overload_break
* package
* overload_simple

View file

@ -0,0 +1,24 @@
#!/usr/bin/perl -w
use strict;
use Test::More tests => 4;
BEGIN { use_ok('package_a'); }
BEGIN { use_ok('package_b'); }
# Workaround for
# ok( not (expression) , "test description" );
# does not working in older versions of Perl, eg 5.004_04
sub ok_not ($;$) {
my($test, $name) = @_;
$test = not $test;
ok($test, $name);
}
my $a = C::A->new();
isa_ok($a, 'C::A');
my $b = C::B->new();
isa_ok($b, 'C::B');