>> Re-reading the man page, it looks like isa_ok and can_ok can't even
>> accept a test description?
> 
> can_ok cannot accept a description because it accepts a list.

This could be repaired by re-prototyping can_ok as ([EMAIL PROTECTED]).

What's the reasoning behind accepting an array, anyway?  Can't you just do:

can_ok($object, $_, "can object $_?") for @methods;

This would then run (scalar @methods) tests, but I'd think you'd want
that anyway.  It doesn't make sense for a test for ->can("foo") to fail
when ->can("bar") fails.

Regards,
Jonathan Rockway


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to