File: 01new_import_pkg.t

package info (click to toggle)
libtest-exports-perl 1-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 104 kB
  • sloc: perl: 354; makefile: 2
file content (19 lines) | stat: -rw-r--r-- 335 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl

use warnings;
use strict;

use Test::Most "bail";
use Test::Exports;

my $pkg = new_import_pkg;

like $pkg, qr/Test::Exports::Test[A-Z]{5}/, 
    "test pkg created under T::E";

my ($c) = $pkg =~ /([A-Z]{5})$/;
$c++;
is new_import_pkg, "Test::Exports::Test$c",
    "new_import_pkg increments pkg name";

done_testing;