> 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 Thu, Jun 27, 2002 at 04:32:31PM +0200, Janek Schleicher wrote:
> I couldn't find a module doing this job on CPAN,
> so I'm ready to write a Test::Warn module.
>
> I thought that two methods should be implemented:
> warns_ok BLOCK REGEX, TEST_NAME (regex and test_name are optional)
> no_
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 Fri, Jun 28, 2002 at 02:34:48PM -0500, Danny Faught wrote:
> I just tried to install Test::More 0.45 under Cygwin on Windows 2000.
> It fails the output test. Same results on two different machines, and
> also on version 0.44. I'm running perl 5.6.1. All other tests pass.
> All tests, incl
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