From: Vincent Pit Date: Thu, 14 Jan 2010 22:27:28 +0000 (+0100) Subject: Correct some test descriptions X-Git-Tag: v0.10~12 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=d41e3b0a75d80ece4b37668338ecff36829770a2;p=perl%2Fmodules%2FScope-Upper.git Correct some test descriptions --- diff --git a/t/23-localize-ctl.t b/t/23-localize-ctl.t index 9acf7be..13fb193 100644 --- a/t/23-localize-ctl.t +++ b/t/23-localize-ctl.t @@ -131,19 +131,19 @@ $y = undef; { local $x = 3; localize '$y' => 1 => UP UP UP UP; - is $x, 3, 'die - reap outside eval [not yet 1 - x]'; - is $y, undef, 'die - reap outside eval [not yet 1 - y]'; + is $x, 3, 'die - localize outside eval [not yet 1 - x]'; + is $y, undef, 'die - localize outside eval [not yet 1 - y]'; } - is $x, 2, 'die - reap outside eval [not yet 2 - x]'; - is $y, undef, 'die - reap outside eval [not yet 2 - y]'; + is $x, 2, 'die - localize outside eval [not yet 2 - x]'; + is $y, undef, 'die - localize outside eval [not yet 2 - y]'; die; } }; - is $x, 1, 'die - reap outside eval [not yet 3 - x]'; - is $y, undef, 'die - reap outside eval [not yet 3 - y]'; + is $x, 1, 'die - localize outside eval [not yet 3 - x]'; + is $y, undef, 'die - localize outside eval [not yet 3 - y]'; } # should trigger here - is $x, 1, 'die - reap outside eval [ok - x]'; - is $y, 1, 'die - reap outside eval [ok - y]'; + is $x, 1, 'die - localize outside eval [ok - x]'; + is $y, 1, 'die - localize outside eval [ok - y]'; } $y = undef; @@ -155,16 +155,16 @@ $y = undef; { local $x = 3; localize '$y' => 1 => UP UP UP; - is $x, 3, 'die - reap at eval [not yet 1 - x]'; - is $y, undef, 'die - reap at eval [not yet 1 - y]'; + is $x, 3, 'die - localize at eval [not yet 1 - x]'; + is $y, undef, 'die - localize at eval [not yet 1 - y]'; } - is $x, 2, 'die - reap at eval [not yet 2 - x]'; - is $y, undef, 'die - reap at eval [not yet 2 - y]'; + is $x, 2, 'die - localize at eval [not yet 2 - x]'; + is $y, undef, 'die - localize at eval [not yet 2 - y]'; die; } }; # should trigger here - is $x, 1, 'die - reap at eval [ok - x]'; - is $y, 1, 'die - reap at eval [ok - y]'; + is $x, 1, 'die - localize at eval [ok - x]'; + is $y, 1, 'die - localize at eval [ok - y]'; } $y = undef; @@ -176,16 +176,16 @@ $y = undef; { local $x = 3; localize '$y' => 1 => UP UP; - is $x, 3, 'die - reap inside eval [not yet 1 - x]'; - is $y, undef, 'die - reap inside eval [not yet 1 - y]'; + is $x, 3, 'die - localize inside eval [not yet 1 - x]'; + is $y, undef, 'die - localize inside eval [not yet 1 - y]'; } - is $x, 2, 'die - reap inside eval [not yet 2 - x]'; - is $y, undef, 'die - reap inside eval [not yet 2 - y]'; + is $x, 2, 'die - localize inside eval [not yet 2 - x]'; + is $y, undef, 'die - localize inside eval [not yet 2 - y]'; die; } # should trigger here }; - is $x, 1, 'die - reap inside eval [ok - x]'; - is $y, undef, 'die - reap inside eval [ok - y]'; + is $x, 1, 'die - localize inside eval [ok - x]'; + is $y, undef, 'die - localize inside eval [ok - y]'; } SKIP: