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.
Browse files
Browse the repository at this point in the history
Adds test
Refs #55, for the time being it does not reproduce the error. Will need more tests.
- Loading branch information
Showing
1 changed file
with
15 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,15 @@ | ||
| use Test; # -*- mode: perl6 -*- | ||
| use Pod::To::HTML; | ||
| plan 2; | ||
|
|
||
| use MONKEY-SEE-NO-EVAL; | ||
|
|
||
| # XXX Need a module to walk HTML trees | ||
|
|
||
| my $example-path = "test.pod6".IO.e??"test.pod6"!!"t/test.pod6"; | ||
|
|
||
| my $a-pod = $example-path.IO.slurp; | ||
| my $pod = (EVAL ($a-pod ~ "\n\$=pod")); # use proved pod2onebigpage method | ||
| my $r = node2html $pod; | ||
| ok( $r, "Converting external" ); | ||
| unlike( $r, /Pod\:\:To/, "Is not prepending class name" ); |