use Test::More;
+use lib 't/lib';
+use VPIT::TestHelpers;
+
BEGIN {
- plan skip_all => 'Variable::Magic required to test magic'
- unless eval "use Variable::Magic; 1";
+ load_or_skip('Variable::Magic', undef, [ ], 'required to test magic');
}
{
BEGIN {
plan tests => 2 * 8;
- defined and diag "Using Variable::Magic $_" for $Variable::Magic::VERSION;
}
use Lexical::Types as => 'Lexical::Types::Test';
use Test::More;
+use lib 't/lib';
+use VPIT::TestHelpers;
+
BEGIN {
- plan skip_all => 'Variable::Magic 0.35 on 5.10 required to test uvar magic'
- unless eval "use Variable::Magic 0.35; Variable::Magic::VMG_UVAR";
+ load_or_skip('Variable::Magic', '0.35', [ ], 'required to test uvar magic');
+ plan skip_all => 'perl 5.10 required to test uvar magic'
+ unless Variable::Magic::VMG_UVAR();
}
{
BEGIN {
plan tests => 2 * 11;
- defined and diag "Using Variable::Magic $_" for $Variable::Magic::VERSION;
}
use Lexical::Types as => 'Lexical::Types::Test';