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

« back to all changes in this revision

Viewing changes to t/38listshorizontalrule.t

  • Committer: Bazaar Package Importer
  • Author(s): Ansgar Burchardt
  • Date: 2008-07-24 21:06:58 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080724210658-kbpqulb200ddijqe
Tags: 1.0.21-1
* New upstream release.
  + Update pod_name patch accordingly
* Install Todo as documentation
* Refresh debian/rules for debhelper 7
* Add myself to Uploaders.
* debian/control: Use dist-based URL for Homepage field
* Update debian/copyright:
  + Adopt to current proposed format
  + Replace "Copyright" and "(C)" by "©"
  + Include full license text as the version in
    /usr/share/common-licenses/BSD refers to the University as copyright
    holder
  + Move pointer to GPL and Artistic license to the right section

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
use strict;
 
2
use warnings;
 
3
use Test::More tests => 2;
 
4
 
 
5
# I would like to do what Pandoc etc do here...
 
6
# http://babelmark.bobtfish.net/?markdown=%2B+++item+1%0D%0A%0D%0A++++%2B+++item+2%0D%0A%0D%0A+*+++*+++*+++*+++*&normalize=on
 
7
 
 
8
use_ok('Text::MultiMarkdown', 'markdown');
 
9
 
 
10
my $m = Text::MultiMarkdown->new();
 
11
my $html1 = $m->markdown(<<"EOF");
 
12
+   item 1
 
13
 
 
14
    +   item 2
 
15
 
 
16
 *   *   *   *   *
 
17
EOF
 
18
 
 
19
{
 
20
    local $TODO = 'Does not work as expected in current Markdown, known bug.';
 
21
 
 
22
    is( $html1, <<"EOF" );
 
23
<ul>
 
24
<li>
 
25
<p>item 1</p>
 
26
 
 
27
<ul>
 
28
<li>item 2</li>
 
29
</ul>
 
30
</li>
 
31
</ul>
 
32
 
 
33
<hr/>
 
34
EOF
 
35
 
 
36
};