On Thu, Feb 12, 2009 at 3:18 PM, Nicholas Clark <n...@ccl4.org> wrote:
> I find
>
>    isnt($foo, undef);
>
> useful as it gives better failure diagnostics than
>
>    ok(defined $foo);
>

Wouldn't it be better to write this

     is_defined($foo);

Which, on failure would print
#          got: undef
#     expected: anything else

as it does your example.

Schwern, can this be added to Test::More ?

Gabor

Reply via email to