summaryrefslogtreecommitdiffstats
path: root/t/fmt-xml.t
blob: 91b3f8c8b71ab86db786059d72bc0aac40c7b979 (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
25
26
27
28
29
30
# XML and XML-based modules tester.

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

use strict;
use warnings;

use lib q(t);
use Testhelper;

my @tests;

for my $g (qw(basic comments cdata)) {
    push @tests, { 'format' => 'guide', 'input' => "fmt/xml/$g.xml" };
}
for my $x (qw(attribute-novalue options)) {
    push @tests, { 'format' => 'xml', 'input' => "fmt/xml/$x.xml" };
}
push @tests, {
    'format' => 'xml',
    'input' => "fmt/xml/placeholder-empty.xml",
    'options' => "-o 'placeholder=<place>'",
}, {
    'format' => 'xml',
    'input' => "fmt/xml/inside-foldattribute.xml",
    'options' => "-o 'attributes=<image>alt' -o 'inline=<image>' -o foldattributes",
};

run_all_tests(@tests);
0;