File: vars.3.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 (32 lines) | stat: -rwxr-xr-x 510 bytes parent folder | download
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
30
31
32
#!/usr/bin/perl

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

$main::TI_START = 3;
$main::TI_END   = 4;

$main::TI_START = 3;
$main::TI_END   = 4;

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

$ti->is  ( 1,-1, "Broken test");
$ti->is  ( 2,-2, "Broken test");

$ti->is  ( 3,3,  "Good test");
$ti->is  ( 4,4,  "Good test");

$ti->is  ( 5,-5, "Broken test");
$ti->is  ( 6,-6, "Broken test");

$ti->done_testing();