diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 11:26:17 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-06-17 11:26:17 +0000 |
commit | 5df6c2aefebe3d2abcc939a88e294876d59f03ca (patch) | |
tree | 63fb332a0f21ddb91cb789c80cf64e134d373463 /t/fmt-txt.t | |
parent | Initial commit. (diff) | |
download | po4a-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.t')
-rw-r--r-- | t/fmt-txt.t | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/t/fmt-txt.t b/t/fmt-txt.t new file mode 100644 index 0000000..6176e35 --- /dev/null +++ b/t/fmt-txt.t @@ -0,0 +1,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; |