diff options
author | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2017-06-01 13:28:00 +0100 |
---|---|---|
committer | Chris 'BinGOs' Williams <chris@bingosnet.co.uk> | 2017-06-01 13:52:15 +0100 |
commit | 223483699b06992e953eb5468dbc63a71b52fb3e (patch) | |
tree | a195c4c1155843280ca7030d91362fc8df317029 /dist | |
parent | 99fcc83522102cdf7673a78ef88144bd9c093f5a (diff) | |
download | perl-223483699b06992e953eb5468dbc63a71b52fb3e.tar.gz |
Add Module-CoreList maintainer tests
Diffstat (limited to 'dist')
-rw-r--r-- | dist/Module-CoreList/t/maintainer.t | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/dist/Module-CoreList/t/maintainer.t b/dist/Module-CoreList/t/maintainer.t new file mode 100644 index 0000000000..7a3d6584e4 --- /dev/null +++ b/dist/Module-CoreList/t/maintainer.t @@ -0,0 +1,28 @@ +use strict; +use warnings; +use Test::More; + +plan skip_all => 'These tests only run in core' + unless $ENV{PERL_CORE}; + +my @mods = qw[ +Module::CoreList +Module::CoreList::TieHashDelta +Module::CoreList::Utils +]; + +plan tests => 3 + scalar @mods; + +my %vers; + +foreach my $mod ( @mods ) { + use_ok($mod); + $vers{ $mod->VERSION }++; +} + +is( scalar keys %vers, 1, 'All Module-CoreList modules should have the same $VERSION' ); + +# Check that there is a release entry for the current perl version +my $released = $Module::CoreList::released{ $] }; +ok( defined $released, "There is a released entry for $]" ); +like( $released, qr!^\d{4}\-\d{2}\-\d{2}$!, 'It should be a date in YYYY-MM-DD format' ); |