~ubuntu-branches/ubuntu/trusty/libtext-markdown-perl/trusty

« back to all changes in this revision

Viewing changes to t/16headingsinlists.t

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Yu, Jonathan Yu, gregor herrmann, Nathan Handler
  • Date: 2009-08-26 11:14:08 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20090826111408-p5lw469iekiybf4t
Tags: 1.0.25-1
[ Jonathan Yu ]
* New upstream release
  + MultiMarkdown is now removed from upstream package; it is now
    available as a separate standalone package
* Updated copyright information
* Added myself to Uploaders and Copyright
* Updated rules to new short format
* Updated control file description
* Standards-Version 3.8.3 (remove version dependency on perl)
* Install Markdown.pl as markdown, as before, but use overrides
* Add header for pod_name patch
* Remove .manpages file, they are installed automatically
* Suggest libtext-multimarkdown-perl (since it's a separate package now)
* Add libhtml-tidy-perl to B-D-I for testing
* Add a NEWS item for the libtext-multimarkdown-perl split

[ gregor herrmann ]
* debian/control: Added: ${misc:Depends} to Depends: field.

[ Nathan Handler ]
* debian/watch: Update to ignore development releases.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
use strict;
2
 
use warnings;
3
 
use Test::More tests => 3;
4
 
 
5
 
use_ok('Text::MultiMarkdown', 'markdown');
6
 
 
7
 
my $m = Text::MultiMarkdown->new(
8
 
    heading_ids => 0
9
 
);
10
 
 
11
 
# This case works.
12
 
 
13
 
my $html1 = $m->markdown(<<"EOF");
14
 
- # Heading 1
15
 
 
16
 
- ## Heading 2
17
 
EOF
18
 
 
19
 
is( $html1, <<"EOF" );
20
 
<ul>
21
 
<li><h1>Heading 1</h1></li>
22
 
<li><h2>Heading 2</h2></li>
23
 
</ul>
24
 
EOF
25
 
 
26
 
# This case fails.
27
 
 
28
 
my $html2 = $m->markdown(<<"EOF");
29
 
- # Heading 1
30
 
- ## Heading 2
31
 
EOF
32
 
 
33
 
{
34
 
    local $TODO = 'Fails as lack of space between list elements means we only run span level tags, and headings are block level';
35
 
    is( $html2, <<'EOF' );
36
 
<ul>
37
 
<li><h1>Heading 1</h1></li>
38
 
<li><h2>Heading 2</h2></li>
39
 
</ul>
40
 
EOF
41
 
 
42
 
};