X-Git-Url: http://git.vpit.fr/?p=perl%2Fmodules%2FVariable-Temp.git;a=blobdiff_plain;f=t%2F10-lexical.t;h=8fc07fab9bd97b824b4b6c6ccff7b8b2f6a3731b;hp=41bbf45c7c2d936946afd400e3d4a73e63fb3e4d;hb=18eafa9533d73e88dee2e1114b4835fb8a65d844;hpb=6ff9c73813cc7b7f722c2693d0a0aea4a526b931 diff --git a/t/10-lexical.t b/t/10-lexical.t index 41bbf45..8fc07fa 100644 --- a/t/10-lexical.t +++ b/t/10-lexical.t @@ -3,21 +3,21 @@ use strict; use warnings; -use Variable::Temp 'temp'; +use Variable::Temp 'set_temp'; use Test::More tests => 7; my $x = 1; is $x, 1; { - temp $x = 2; + set_temp $x => 2; is $x, 2; $x = 3; is $x, 3; { - temp $x = 4; + set_temp $x => 4; is $x, 4; - temp $x = 5; + set_temp $x => 5; is $x, 5; } is $x, 3;