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

« back to all changes in this revision

Viewing changes to t/13multimarkdown-nometadata-firstpara.t

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann
  • Date: 2008-04-26 00:35:34 UTC
  • Revision ID: james.westby@ubuntu.com-20080426003534-oo979u4lubd1ltc1
Tags: upstream-1.0.19
ImportĀ upstreamĀ versionĀ 1.0.19

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
use_ok( 'Text::MultiMarkdown', 'markdown' );
 
6
 
 
7
my $m     = Text::MultiMarkdown->new;
 
8
 
 
9
# A line of whitespace should cause metadata to be skipped..
 
10
my $html1 = $m->markdown(<<"EOF");
 
11
    
 
12
Simple block on one line:
 
13
 
 
14
<div>foo</div>
 
15
EOF
 
16
 
 
17
is( $html1, <<"EOF" );
 
18
<p>Simple block on one line:</p>
 
19
 
 
20
<div>foo</div>
 
21
EOF