, is($x, $y, $name) cmp_ok($x, 'eq', $y, $name). eq . , cmp_ok '=='. is:
sub is_num {cmp_ok $_[0], '==', $_[1], $_[2]}
, . , :
sub is_num {splice @_, 1, 0, '=='; goto &cmp_ok}
goto &sub , cmp_ok caller, , . goto &sub is_num, cmp_ok , is_num.
, Test:: Magic, Test::More:
use Test::Magic 'no_plan';
...
test 'fruit price',
is $price == 1.50;
cmp_ok( $price, '==', 1.50, 'fruit price')