diff options
Diffstat (limited to 't/fmt-xml.t')
-rw-r--r-- | t/fmt-xml.t | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/t/fmt-xml.t b/t/fmt-xml.t new file mode 100644 index 0000000..91b3f8c --- /dev/null +++ b/t/fmt-xml.t @@ -0,0 +1,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; |