Debian Codegraph @

t/basic.t

raw
1 use strict;
2 use warnings;
3
4 use Test::Tester;
5 use Test::More tests => 10;
6 use Test::MinimumVersion;
7
8 minimum_version_ok('t/eg/bin/5.6-warnings.pl', '5.006');
9
10 check_test(
11 sub {
12 minimum_version_ok('t/eg/bin/5.6-warnings.pl', '5.006');
13 },
14 {
15 ok => 1,
16 name => 't/eg/bin/5.6-warnings.pl',
17 diag => '',
18 },
19 "successful comparison"
20 );
21
22 chdir "t/eg";
23
24 subtest "versions from meta" => sub {
25 my $vy = Test::MinimumVersion::__version_from_meta('META.yml');
26 is($vy, '5.021', "version from YAML");
27 my $vj = Test::MinimumVersion::__version_from_meta('META.json');
28 is($vj, '5.012', "version from JSON");
29 };
30
31 subtest "skip files" => sub {
32 all_minimum_version_ok(
33 '5.006',
34 { no_test => 1, skip => [ 'bin/explicit-5.8.pl' ] },
35 );
36 };