# vim: set ts=2 sts=2 sw=2 expandtab smarttab: use strict; use warnings; use Test::More; use Test::Differences; use Pod::Markdown; my $pod_prefix = 'http://search.cpan.org/perldoc?'; { package # no_index IOString; sub new { bless [map { "$_\n" } split /\n/, $_[1] ], $_[0] } sub getline { shift @{ $_[0] } } } my @tests; push @tests, ['name', < scalar @tests; foreach my $test ( @tests ) { my ($desc, $pod, $exp) = @$test; my $parser = Pod::Markdown->new; $parser->parse_from_filehandle( IOString->new($pod) ); my $markdown = $parser->as_markdown(with_meta => ($desc ne 'none')); eq_or_diff $markdown, $exp, "meta tags: $desc"; }