]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/21-set.t
Rename test functions init() and check() to init_watcher() and watch()
[perl/modules/Variable-Magic.git] / t / 21-set.t
index b81684fdb7eff8b31ed401d2b52d76b0f1398391..5ed992fe5577145a14b32aa4d788664308b77c4f 100644 (file)
@@ -10,19 +10,19 @@ use Variable::Magic qw/cast/;
 use lib 't/lib';
 use Variable::Magic::TestWatcher;
 
-my $wiz = init 'set', 'set';
+my $wiz = init_watcher 'set', 'set';
 
 my $a = 0;
 
-check { cast $a, $wiz } { }, 'cast';
+watch { cast $a, $wiz } { }, 'cast';
 
 my $n = int rand 1000;
 
-check { $a = $n } { set => 1 }, 'assign';
+watch { $a = $n } { set => 1 }, 'assign';
 is $a, $n, 'set: assign correctly';
 
-check { ++$a } { set => 1 }, 'increment';
+watch { ++$a } { set => 1 }, 'increment';
 is $a, $n + 1, 'set: increment correctly';
 
-check { --$a } { set => 1 }, 'decrement';
+watch { --$a } { set => 1 }, 'decrement';
 is $a, $n, 'set: decrement correctly';