Debian Codegraph @

t/02items.t

raw symbols SCIP
1 #!/usr/bin/env perl
2 #
3
4 use strict;
5 use warnings;
6
7 use Test::More;
8
9 use Pod::POM::View::Restructured;
10
11 my $conv = Pod::POM::View::Restructured->new({namespace => "Pod::POM::View::Restructured"});
12 isa_ok($conv, 'Pod::POM::View::Restructured');
13
14 use Cwd;
15 my $dir = getcwd;
16 my $rv = $conv->convert_file("$dir/t/test.pod");
17
18 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_ok($rv->{content}, '=~', "\Q$str\E", "string cmp " . $count++);
34 }
35
36 done_testing();