summaryrefslogtreecommitdiffstats
path: root/t/fmt-txt-fortunes.t
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 11:26:17 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-06-17 11:26:17 +0000
commit5df6c2aefebe3d2abcc939a88e294876d59f03ca (patch)
tree63fb332a0f21ddb91cb789c80cf64e134d373463 /t/fmt-txt-fortunes.t
parentInitial commit. (diff)
downloadpo4a-5df6c2aefebe3d2abcc939a88e294876d59f03ca.tar.xz
po4a-5df6c2aefebe3d2abcc939a88e294876d59f03ca.zip
Adding upstream version 0.72.upstream/0.72
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 't/fmt-txt-fortunes.t')
-rw-r--r--t/fmt-txt-fortunes.t24
1 files changed, 24 insertions, 0 deletions
diff --git a/t/fmt-txt-fortunes.t b/t/fmt-txt-fortunes.t
new file mode 100644
index 0000000..c669420
--- /dev/null
+++ b/t/fmt-txt-fortunes.t
@@ -0,0 +1,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;