On Thu, Feb 15, 2001 at 11:59:24PM -0500, barries wrote:
> >     todo({ $obj->fooble == 42 });
> 
> Cool.  is that a HASH ref 

No, CODE.  todo would be prototyped (&;$$) or something like that.
With a & prototype, the "sub" is unnecessary to pass an anonymous sub
(think map and grep).


> > This defeats the purpose of embedded tests.
> 
> Not really: in the same file is closer than in some other file over in
> another directory.  So there's a...

Okay, we'll file this discussion under YMMV.


> > I realized a few months ago that even if I do
> > patch MakeMaker do to something cool, I can't rely on it because my
> > code has to work on older installations.
> 
> What about providing a module that wraps both Pod::Tests and
> Test::Harness, scans the command line and tests any specified modules?

Well, same problem with a MakeMaker patch-- everyone will have to have
that module.

> If no command line arguments, then all files under lib that contain
> the string /^\s*use selftest\b/ would be tested.

Ok, let's see a prototype.

Reply via email to