File: 24_version.t

package info (click to toggle)
libmodule-extractuse-perl 0.344-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 868 kB
  • sloc: perl: 11,270; makefile: 17
file content (29 lines) | stat: -rw-r--r-- 406 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/perl -w

use strict;
use Test::More tests => 3;

use Module::ExtractUse;


{
my $p = Module::ExtractUse->new;
is $p->extract_use(\(<<'CODE'))->string, '5.010';
use 5.010;
CODE
}

{
my $p = Module::ExtractUse->new;
is $p->extract_use(\(<<'CODE'))->string, '5.006_001';
use 5.006_001;
CODE
}

{
my $p = Module::ExtractUse->new;
is $p->extract_use(\(<<'CODE'))->string, '5.008';
use 5.008;
CODE
}