File: 02paragraph.t

package info (click to toggle)
libtext-textile-perl 2.12-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 208 kB
  • ctags: 51
  • sloc: perl: 2,140; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 275 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl -Tw

use warnings;
use strict;

use Test::More tests=>1;
use Text::Textile qw(textile);

my $source = "paragraph1\n\nparagraph2\n\n";
my $dest = textile($source);
my $expected = "<p>paragraph1</p>\n\n<p>paragraph2</p>";

is($dest, $expected, 'Do we match?');