X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F01-import.t;h=1524c9f75def0b7db9acc8931ba707b16122100d;hb=c471e8c9f86ad8817761816101358f8ae1035915;hp=37dc939d9cfcf4afd7c8321d620715f4c2458a5f;hpb=77a84f75f33e3ee44e61182dec76699e23025375;p=perl%2Fmodules%2FVariable-Magic.git diff --git a/t/01-import.t b/t/01-import.t index 37dc939..1524c9f 100644 --- a/t/01-import.t +++ b/t/01-import.t @@ -1,10 +1,13 @@ #!perl -T -use Test::More tests => 9; +use strict; +use warnings; + +use Test::More tests => 16; require Variable::Magic; -for (qw/wizard gensig getsig cast getdata dispell SIG_MIN SIG_MAX SIG_NBR/) { +for (qw/wizard gensig getsig cast getdata dispell SIG_MIN SIG_MAX SIG_NBR MGf_COPY MGf_DUP MGf_LOCAL VMG_UVAR VMG_COMPAT_ARRAY_PUSH_NOLEN VMG_COMPAT_ARRAY_UNDEF_CLEAR VMG_COMPAT_SCALAR_LENGTH_NOLEN/) { eval { Variable::Magic->import($_) }; - ok(!$@, 'import ' . $_); + is($@, '', 'import ' . $_); }