X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F30-scalar.t;h=71fa3cbcd8c0a222082d9985fecff1d928a015fc;hb=refs%2Ftags%2Fv0.46;hp=f6faea4ea1eaf27f79b839ec542f4b4f18a2e7eb;hpb=9dce2bfe18bcd7d9914310c81b8832d40fb04fbb;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/30-scalar.t b/t/30-scalar.t index f6faea4..71fa3cb 100644 --- a/t/30-scalar.t +++ b/t/30-scalar.t @@ -3,11 +3,11 @@ use strict; use warnings; -use Config qw/%Config/; +use Config qw<%Config>; use Test::More tests => (2 * 14 + 2) + 2 * (2 * 8 + 4) + 3 + 1; -use Variable::Magic qw/wizard cast dispell MGf_COPY/; +use Variable::Magic qw; use lib 't/lib'; use Variable::Magic::TestWatcher; @@ -15,7 +15,7 @@ use Variable::Magic::TestWatcher; my $is_5130_release = ($] == 5.013 && !$Config{git_describe}) ? 1 : 0; my $wiz = init_watcher - [ qw/get set len clear free copy dup local fetch store exists delete/ ], + [ qw ], 'scalar'; my $n = int rand 1000; @@ -112,7 +112,7 @@ SKIP: { } skip $SKIP => 3 if $SKIP; - diag "Using Tie::Array $Tie::Array::VERSION" if defined $Tie::Array::VERSION; + defined and diag "Using Tie::Array $_" for $Tie::Array::VERSION; tie my @a, 'Tie::StdArray'; $a[0] = $$; @@ -122,5 +122,5 @@ SKIP: { }; is $@, '', 'cast copy magic on tied array'; - watch { delete $a[0] } [ qw/get clear free/ ], 'delete from tied array'; + watch { delete $a[0] } [ qw ], 'delete from tied array'; }