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
27
28
29
30
31
32
33
34
35
36
37
|
# Text module tester.
#########################
use strict;
use warnings;
use lib q(t);
use Testhelper;
my @tests;
push @tests,
{
'format' => 'text',
'options' => '-o keyvalue',
'input' => "fmt/txt/KeyValue.text",
},
{
'doc' => "Rewrap output of text file to the given width",
'format' => 'text',
'options' => '-w 40',
'input' => "fmt/txt/Width.text",
'skip' => { 'updatepo' => 1 }
},
{
'doc' => "Don't wrap the output at all",
'format' => 'text',
'options' => '--width -1',
'input' => "fmt/txt/Width.text",
'norm' => "fmt/txt/Width-nowrap.norm",
'trans' => "fmt/txt/Width-nowrap.trans",
'skip' => { 'updatepo' => 1 }
};
run_all_tests(@tests);
0;
|