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
Showing
3 changed files
with
68 additions
and
2 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
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 |
---|---|---|
@@ -1,11 +1,22 @@ | ||
use v6; | ||
use Test; | ||
plan 2; | ||
plan 3; | ||
|
||
use Pod::Parser; | ||
ok 1, 'Loading module succeeded'; | ||
|
||
my $pp = Pod::Parser.new; | ||
isa_ok $pp, 'Pod::Parser'; | ||
|
||
my @result = $pp.parse_file('t/files/a.pod'); | ||
is_deeply @result, Array.new( | ||
"text before\n\n", | ||
"\n=head1 NAME\n\nText in name\n\n=head1 SYNOPSIS\n\n some verbatime\n text\n\n"), 'parse a.pod'; | ||
#say Pod::Parser::parse($case); | ||
|
||
#say %tree; | ||
|
||
#is_deeply( | ||
|
||
|
||
done; |
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,17 @@ | ||
text before | ||
|
||
=begin pod | ||
=head1 NAME | ||
Text in name | ||
=head1 SYNOPSIS | ||
some verbatime | ||
text | ||
=end pod | ||
|
||
text after | ||
|