]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/20-get.t
Importing Variable-Magic-0.13.tar.gz
[perl/modules/Variable-Magic.git] / t / 20-get.t
index b79edc8e13bc91abd62ad77d191974e6160b4e51..60826a17737af38ee4ca0686cce2489c80c7ce95 100644 (file)
@@ -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');