httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: extending t_cmp to handle !t_cmp?
Date Mon, 29 Nov 2004 01:27:09 GMT

Stas Bekman wrote:

> so we probably need to introduce a new directive t_cmp_no() or something
> similar which will be run as:
> 
>   ok t_cmp_no $received, qr/message/
> 
> and log as:
> 
> # testing : whatever
> # expected: ! (?-xism:message)
> # received: [...] [notice] [client 127.0.0.1] message must not appear!
> not ok 32
> 
> or something like that. internally it'd run !~, neq and != depending on
> the arguments.

I suppose.

however, with Test::More now fully integrated, I wonder why we need to add
more of our own functions that merely mimic what Test::More already offers.
 in this case, you're asking for Test::More's unlike().

--Geoff

Mime
View raw message