]> git.vpit.fr Git - perl/modules/Variable-Magic.git/blobdiff - t/23-clear.t
Rename test functions init() and check() to init_watcher() and watch()
[perl/modules/Variable-Magic.git] / t / 23-clear.t
index d07d4b01958b843a26be53ebd793752f3cd9bdd9..3f7f57e7ed8d0928b4a5db1c36aa65ad93352ea7 100644 (file)
@@ -10,18 +10,18 @@ use Variable::Magic qw/cast/;
 use lib 't/lib';
 use Variable::Magic::TestWatcher;
 
-my $wiz = init 'clear', 'clear';
+my $wiz = init_watcher 'clear', 'clear';
 
 my @a = qw/a b c/;
 
-check { cast @a, $wiz } { }, 'cast array';
+watch { cast @a, $wiz } { }, 'cast array';
 
-check { @a = () } { clear => 1 }, 'clear array';
+watch { @a = () } { clear => 1 }, 'clear array';
 is_deeply \@a, [ ], 'clear: clear array correctly';
 
 my %h = (foo => 1, bar => 2);
 
-check { cast %h, $wiz } { }, 'cast hash';
+watch { cast %h, $wiz } { }, 'cast hash';
 
-check { %h = () } { clear => 1 }, 'clear hash';
+watch { %h = () } { clear => 1 }, 'clear hash';
 is_deeply \%h, { }, 'clear: clear hash correctly';