httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James G Smith <JGSm...@TAMU.Edu>
Subject Re: switching t_cmp() argument order
Date Mon, 07 Jun 2004 20:56:53 GMT
Geoffrey Young <geoff@modperlcookbook.org> wrote:
>hi all
>
>before it gets too late I would like to change t_cmp() to
>
>  t_cmp($received, $expected, $comment);
>
>so that test writers can feel at home in either environment.
>
>for the most part the change would be transparent to users as long as their
>tests pass.  the only exception is qr// tests, which would error out now and
>force a recode.  there's not much we can do about that except to make the
>switch sooner rather than later I guess.

jgsmith@moya:~ % perl -e '$a = qr/this/; print ref $a;' && echo
Regexp

Perhaps do a test and swap the arguments if the first is a Regexp, as
well as issue a deprecation warning.
-- 
James Smith <JGSmith@TAMU.Edu>, 979-862-3725
Texas A&M CIS Operating Systems Group, Unix

Mime
View raw message