File: test.pl

package info (click to toggle)
libinline-perl 0.86-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 504 kB
  • sloc: perl: 3,147; sh: 57; makefile: 2
file content (15 lines) | stat: -rwxr-xr-x 198 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use strict;
use Test;

BEGIN {
    plan(tests => 2,
         todo => [],
         onfail => sub {},
        );
}

use Math::Simple qw(add subtract);

ok(add(5, 7) == 12);
ok(subtract(5, 7) == -2);