Skip to content

Commit

Permalink
Add rudimentary test for defn
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanstowe committed Aug 12, 2018
1 parent 48fe639 commit 4df5955
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions t/075-defn.t
@@ -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';

0 comments on commit 4df5955

Please sign in to comment.