I'm implementing is_cmp() inside Test::Builder and I figured it would
be nice if is_eq, is_num, isnt_eq and isnt_num all just went through
that.  And thus Test::More's is() and isnt().

This would mean is($got, $expect) becomes is_cmp($got, 'eq', $expect)
and isnt() becomes is_cmp($got, 'ne', $expect).

Trouble is the special undef vs 0 vs '' handling which was just added
in 0.34.  If is() becomes a straight translation to is_cmp($got, 'eq',
$expect) we lose that feature.

So the question is, leave is() as a special case or make it a pure eq
again?  I don't like having special magic in Test::More.  OTOH, the
current behavior of is() is difficult to emulate otherwise.


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <[EMAIL PROTECTED]>         Kwalitee Is Job One
I will personally promise to glare sternly at such people.
        -- Jarkko Hietaniemi in <[EMAIL PROTECTED]>

Reply via email to