From: Rafael Garcia-Suarez Date: Sun, 24 May 2009 22:22:25 +0000 (+0200) Subject: Fix test for overload in given() with smart match after last change X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2cb9bde7463231aa454a37102d64d4063c039327;p=p5sagit%2Fp5-mst-13.2.git Fix test for overload in given() with smart match after last change --- diff --git a/t/op/switch.t b/t/op/switch.t index 55ed457..7d33b3e 100644 --- a/t/op/switch.t +++ b/t/op/switch.t @@ -816,8 +816,8 @@ SKIP: { default {$matched = 0} } - is($obj->{called}, 0, "$test: called"); - ok(!$matched, "$test: not matched"); + is($obj->{called}, 1, "$test: called"); + ok($matched, "$test: matched"); } { @@ -828,7 +828,7 @@ SKIP: { when ("other arg") {$matched = 1} } - is($obj->{called}, 0, "$test: called"); + is($obj->{called}, 1, "$test: called"); ok(!$matched, "$test: not matched"); }