File: basic.t

package info (click to toggle)
libpod-markdown-perl 3.101000-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 444 kB
  • sloc: perl: 1,000; makefile: 2
file content (70 lines) | stat: -rw-r--r-- 796 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# vim: set ts=2 sts=2 sw=2 expandtab smarttab:
use strict;
use warnings;
use lib 't/lib';
use MarkdownTests tests => 1;

# Test a small, easy section of pod just to show when the parser
# is working.  We'll test more of the details in other scripts.

my $parser = Pod::Markdown->new(
);

$parser->output_string(\my $markdown);
$parser->parse_file(\*DATA);

my $expect = <<EOMARKDOWN;
# POD

One line.

## MORE

One paragraph.
Another line.

    verbatim `text`

Another paragraph.

- Bullet
- Again

`ode`
**old**
_talic_
EOMARKDOWN

eq_or_diff $markdown, $expect, 'convert some basic pod into markdown';

__DATA__
=head1 POD

One line.

=head2 MORE

One paragraph.
Another line.

  verbatim `text`

Another paragraph.

=over

=item *

Bullet

=item *

Again

=back

C<ode>
B<old>
I<talic>

=cut