forked from tadzik/Pod-To-HTML
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
48fe639
commit 4df5955
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
#!perl6 | ||
|
||
use Test; | ||
use Pod::To::HTML; | ||
|
||
plan 1; | ||
|
||
=begin pod | ||
=defn MAD | ||
Affected with a high degree of intellectual independence. | ||
=defn MEEKNESS | ||
Uncommon patience in planning a revenge that is worth while. | ||
=defn MORAL | ||
Conforming to a local and mutable standard of right. | ||
Having the quality of general expediency. | ||
=end pod | ||
|
||
|
||
my $html = pod2html($=pod[0]); | ||
|
||
ok $html ~~ ms[[ | ||
'<dl><dt>MAD</dt><dd>' | ||
'<p>Affected with a high degree of intellectual independence.</p>' | ||
'</dd></dl>' | ||
'<dl><dt>MEEKNESS</dt><dd>' | ||
'<p>Uncommon patience in planning a revenge that is worth while.</p>' | ||
'</dd></dl>' | ||
'<dl><dt>MORAL</dt><dd>' | ||
'<p>Conforming to a local and mutable standard of right. Having the quality of general expediency.</p>' | ||
'</dd></dl>' | ||
]], 'generated html for =defn'; |