Skip to content

Commit

Permalink
Add META test
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanstowe committed Mar 8, 2017
1 parent f0c07c7 commit 093479e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions t/001-meta.t
@@ -0,0 +1,39 @@
#!perl6

use v6.c;

use Test;

my Bool $got-test-meta = True;

my &m-meta-ok;

BEGIN {
require Test::META <&meta-ok>;
$got-test-meta = True;

&m-meta-ok = &meta-ok;

CATCH {
when X::CompUnit::UnsatisfiedDependency {
plan 1;
skip-rest "no Test::META - skipping";
done-testing;
exit;
}
}

}

plan 1;

if $got-test-meta {
m-meta-ok();
}
else {
skip "no Test::META skipping";
}


done-testing;
# vim: expandtab shiftwidth=4 ft=perl6

0 comments on commit 093479e

Please sign in to comment.