From: Vincent Pit Date: Thu, 31 Jan 2013 23:16:11 +0000 (-0200) Subject: Don't use cmp_ok X-Git-Tag: v0.02~2 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=5b9348f0f624efc3e24b83a3fb731aaf1962968b;p=perl%2Fmodules%2FScope-Context.git Don't use cmp_ok Old versions of Test::More still can't cope with overloaded operators. --- diff --git a/t/14-cmp.t b/t/14-cmp.t index 9313d93..8c22c47 100644 --- a/t/14-cmp.t +++ b/t/14-cmp.t @@ -12,8 +12,8 @@ use Scope::Context; { my $block = Scope::Context->new; my $up = $block->up; - cmp_ok $up, '==', $sc, '$up == $sc'; - cmp_ok $block, '!=', $sc, '$block != $sc'; + ok $up == $sc, '$up == $sc'; + ok $block != $sc, '$block != $sc'; } }