Debian Codegraph @

t/02items.t

raw symbols SCIP
1 #!/usr/bin/env perl
2 #
3
4 use strictscip-perl cpan Pod-POM-View-Restructured 1.000004 strict/;
5 use warningsscip-perl cpan Pod-POM-View-Restructured 1.000004 warnings/;
6
7 use Test::Morescip-perl cpan Pod-POM-View-Restructured 1.000004 Test/More/;
8
9 use Pod::POM::View::Restructuredscip-perl cpan Pod-POM-View-Restructured 1.000004 Pod/POM/View/Restructured/;
10
11 my $conv = Pod::POM::View::Restructured->newscip-perl cpan Pod-POM-View-Restructured 1.000004 Pod/POM/View/Restructured/new().({namespace => "Pod::POM::View::Restructured"});
12 isa_okscip-perl cpan Pod-POM-View-Restructured 1.000004 main/isa_ok().($conv, 'Pod::POM::View::Restructured');
13
14 use Cwdscip-perl cpan Pod-POM-View-Restructured 1.000004 Cwd/;
15 my $dir = getcwd;
16 my $rv = $conv->convert_filescip-perl cpan Pod-POM-View-Restructured 1.000004 Pod/POM/View/Restructured/convert_file().("$dir/t/test.pod");
17
18 okscip-perl cpan Pod-POM-View-Restructured 1.000004 main/ok().($rv);
19
20 # An array of RST strings we should get in the output
21 # You will have to escape any quanity chars. e.g. ?, *, etc.
22 my @expected = (
23 '- item1',
24 '- item2',
25 '* item3',
26 '+ item4',
27 '- item5',
28 );
29
30 my $count = 0;
31
32 foreach my $str (@expected) {
33 cmp_okscip-perl cpan Pod-POM-View-Restructured 1.000004 main/cmp_ok().($rv->{content}, '=~', "\Q$str\E", "string cmp " . $count++);
34 }
35
36 done_testingscip-perl cpan Pod-POM-View-Restructured 1.000004 main/done_testing().();