|
1 | 1 | # t/xhtml01.t - check basic output from Pod::Simple::XHTML
|
2 | 2 | use strict;
|
3 | 3 | use warnings;
|
4 |
| -use Test::More tests => 66; |
| 4 | +use Test::More tests => 68; |
5 | 5 |
|
6 | 6 | use_ok('Pod::Simple::XHTML') or exit;
|
7 | 7 |
|
@@ -712,7 +712,7 @@ is($results, "$html\n\n", "Text with =begin html");
|
712 | 712 |
|
713 | 713 | SKIP: for my $use_html_entities (0, 1) {
|
714 | 714 | if ($use_html_entities and not $Pod::Simple::XHTML::HAS_HTML_ENTITIES) {
|
715 |
| - skip("HTML::Entities not installed", 3); |
| 715 | + skip("HTML::Entities not installed", 4); |
716 | 716 | }
|
717 | 717 | local $Pod::Simple::XHTML::HAS_HTML_ENTITIES = $use_html_entities;
|
718 | 718 | initialize($parser, $results);
|
@@ -751,11 +751,28 @@ EOHTML
|
751 | 751 | # Keep =encoding out of content.
|
752 | 752 | initialize($parser, $results);
|
753 | 753 | $parser->parse_string_document("=encoding ascii\n\n=head1 NAME\n");
|
754 |
| - is($results, <<"EOHTML", 'Encoding should not be in content') |
| 754 | + is($results, <<"EOHTML", 'Encoding should not be in content'); |
755 | 755 | <h1 id="NAME">NAME</h1>
|
756 | 756 |
|
757 | 757 | EOHTML
|
758 | 758 |
|
| 759 | + initialize($parser, $results); |
| 760 | + $parser->parse_string_document(<<"EOPOD"); |
| 761 | +=pod |
| 762 | +
|
| 763 | +=encoding UTF-8 |
| 764 | +
|
| 765 | +The pilcrow, ¶, is used to mark the beginning of a new paragraph. |
| 766 | +
|
| 767 | +=cut |
| 768 | +
|
| 769 | +EOPOD |
| 770 | + |
| 771 | + $T = $use_html_entities ? '¶' : '¶'; |
| 772 | + is($results, <<"EOHTML", 'Non-ASCII characters are escaped') |
| 773 | +<p>The pilcrow, ${T}, is used to mark the beginning of a new paragraph.</p> |
| 774 | +
|
| 775 | +EOHTML |
759 | 776 | }
|
760 | 777 |
|
761 | 778 |
|
|
0 commit comments