Unit Tests with Perl
Test::Simple
use strict;
use warnings;
use Test::Simple tests => 1;
sub add {
my ($a, $b) = @_;
return $a + $b;
}
ok(add(1,2) == 3, 'Simple addition calculated correctly.');
See https://metacpan.org/pod/Test::Simple