On Wed, 5 Sep 2001, Doug MacEachern wrote:

> On Wed, 5 Sep 2001, Stas Bekman wrote:
>
> >
> > I've mungled protocol/echo to do something fancier. Dunno whether it's
> > worth adding or not. It's only fun if you run it with -v, and we can
> > supply our own knowledge base to talk our way :)
>
> way cool!
>
> > +use constant HAS_ELIZA => eval { require Chatbot::Eliza;};
> ...
> > +
> > +plan tests => 1 + @test_strings, ['eliza'] && \&HAS_ELIZA;
>
> but this should just be:
> plan tests => 1 + @test_strings, test_module 'Chatbot::Eliza';
>
> assuming TestProtocol::eliza only depends on Chatbot::Eliza.

that works. I need to get someone write a doc on tests writing :)


_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:[EMAIL PROTECTED]   http://apachetoday.com http://eXtropia.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to