httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: t_cmp oddities
Date Mon, 12 Apr 2004 19:36:43 GMT
William McKee wrote:

>>Also William can you check what Test::More does to deal with this problem? 
>>Eventually we may drop t_cmp completely and move into Test::More, whose API 
>>is much reacher and you better use it from the very beginning instead of 
>>Apache::TestUtil, if you can afford requiring Test::More.
> 
> 
> All tests in the following script pass:
> 
> ---------------------------------
>    use Test::More tests => 2;
>    
>    # Test scripts for Stas
>    is (
>            undef,
>            &get_undef,
>            "Retrieve undef from subroutine"
>       );
>    sub get_undef {
>        return;
>    }
> ---------------------------------

Thanks William,

I've checked the implementation in Test/More.pm and fixed t_cmp() accordingly:

-sub t_cmp {
+sub t_cmp ($$;$) {

the workarounds are no longer needed with the current cvs version of A-T.

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

Mime
View raw message