File: 06_version.t

package info (click to toggle)
cpanoutdated 0.32-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 140 kB
  • sloc: perl: 185; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 326 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use strict;
use warnings;
use utf8;
use Test::More;
use App::cpanoutdated;

my $ver = sub {
    open my $fh, '<', 'script/cpan-outdated' or die $!;
    while (<$fh>) {
        if (/VERSION\s=\s(["'])([^"']+)\1/) {
            return $2;
        }
    }
    undef;
}->();
is($ver, $App::cpanoutdated::VERSION);

done_testing;