2
use Test::More tests => 2;
4
use Wiki::Toolkit::Formatter::UseMod;
6
my $formatter = Wiki::Toolkit::Formatter::UseMod->new;
8
# The CGI linebreak is \r\n, not \n.
9
my $wikitext = "\r\nThis is paragraph 1.\r\n\r\nThis is paragraph 2.\r\n";
10
my $html = $formatter->format( $wikitext );
11
like( $html, qr/<p>\s*This is paragraph 1./, "first paragraph detected" );
12
like( $html, qr/<p>\s*This is paragraph 2./,
13
"second paragraph, separated from first by blank line, detected" );