> The purpose of isa_ok() is two fold:
>
> Check that a scalar contains an object
> Check that object is of the right class
I've recently started using it for more than constructors. Here's a
patch to the docs to encourage this:
Thanks,
xoxo,
Andy
--- More.pm Sat Jul 6 22:57:13
On Sat, Jul 06, 2002 at 06:57:27PM -0700, chromatic wrote:
> My test was:
>
> use_ok( 'Child::Class' );
> isa_ok( 'Child::Class', 'Parent::Class' );
>
> I could just as easily check @Child::Class::ISA or use UNIVERSAL::isa().
Child::Class->isa('Parent::Class')
--
This sig file te
On Saturday 06 July 2002 18:41, Michael G Schwern wrote:
> The purpose of isa_ok() is two fold:
> Check that a scalar contains an object
> Check that object is of the right class
> and it only exists because it's a very common test and you have to do the
> above in several steps to get
On Sun, Jun 30, 2002 at 05:37:14PM -0700, chromatic wrote:
> Here's a patch to the Test::Simple 0.45 distribution to make isa_ok() work with
> class names, not just objects. It tries to respect custom isa() methods, as
> well.
The purpose of isa_ok() is two fold:
Check that a scalar contain
Here's a patch to the Test::Simple 0.45 distribution to make isa_ok() work with
class names, not just objects. It tries to respect custom isa() methods, as
well.
-- c
diff -ur Test-Simple-0.45.old/lib/Test/More.pm Test-Simple-0.45/lib/Test/More.pm
--- Test-Simple-0.45.old/lib/Test/More.pm