X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F20-get.t;h=60826a17737af38ee4ca0686cce2489c80c7ce95;hb=a86e3e47a167afadf7de1231d6401a1139330ad0;hp=b79edc8e13bc91abd62ad77d191974e6160b4e51;hpb=56d08a38a664736a762edf46817a346482c4004f;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/20-get.t b/t/20-get.t index b79edc8..60826a1 100644 --- a/t/20-get.t +++ b/t/20-get.t @@ -9,18 +9,18 @@ use Variable::Magic qw/wizard cast/; my $c = 0; my $wiz = wizard get => sub { ++$c }; -ok($c == 0, 'get : create wizard'); +is($c, 0, 'get : create wizard'); my $n = int rand 1000; my $a = $n; cast $a, $wiz; -ok($c == 0, 'get : cast'); +is($c, 0, 'get : cast'); my $b = $a; -ok($c == 1, 'get : assign to'); -ok($b == $n, 'get : assign to correctly'); +is($c, 1, 'get : assign to'); +is($b, $n, 'get : assign to correctly'); $b = "X${a}Y"; -ok($c == 2, 'get : interpolate'); -ok($b eq "X${n}Y", 'get : interpolate correctly'); +is($c, 2, 'get : interpolate'); +is($b, "X${n}Y", 'get : interpolate correctly');