File: require_ok.t

package info (click to toggle)
libtest-inter-perl 1.12-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 352 kB
  • sloc: perl: 1,776; sh: 22; makefile: 6
file content (24 lines) | stat: -rwxr-xr-x 430 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/perl

use warnings 'all';
use strict;
BEGIN {
   if (-d "lib") {
      use lib "./lib";
   } elsif (-d "../lib") {
      use lib "../lib";
   }
}

use Test::Inter;
my $ti = new Test::Inter $0;

$ti->require_ok('5.001');
$ti->require_ok('7.001','forbid');
$ti->require_ok('Config');
$ti->require_ok('Xxx::Yyy','forbid');
$ti->require_ok('Symbol','feature');
$ti->require_ok('Xxx::Zzz','feature');

$ti->done_testing();