summaryrefslogtreecommitdiffstats
path: root/t/fmt-txt-fortunes.t
blob: c6694201045d408b793d7143dced3d2c4390818f (plain)
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
# Text module tester for fortunes files.

#########################

use strict;
use warnings;

use lib q(t);
use Testhelper;

my @tests;

foreach my $t (qw(SingleFortune SeveralFortunes MultipleLines)) {
    push @tests,
      {
        'format'  => 'text',
        'options' => '-o fortunes',
        'input'   => "fmt/txt-fortunes/$t.txt"
      };
}

run_all_tests(@tests);
0;