File: vars.1.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 (26 lines) | stat: -rwxr-xr-x 452 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
#!/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,('start' => 3, 'end' => 4) ;

$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();