Skip to content

Commit

Permalink
Merge pull request #16 from zoffixznet/fix_malformed_URL_formatting_i…
Browse files Browse the repository at this point in the history
…ssue_12

Test for malformed formatting

(Issue #12)
  • Loading branch information
jmcnamara committed Mar 8, 2015
2 parents 15b4729 + 81327a1 commit 6c3b216
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion t/mediawiki_links.t
Expand Up @@ -14,7 +14,7 @@
use strict;

use Pod::Simple::Wiki;
use Test::More tests => 4;
use Test::More tests => 6;

my $style = 'mediawiki';

Expand All @@ -28,6 +28,16 @@ my @tests = (
"=pod\n\nL<http://www.perl.org>." => qq(http://www.perl.org.\n\n),
'http'
],
[
"=pod\n\nL<Google|http://www.google.com>." =>
qq([http://www.google.com Google].\n\n),
'http with text'
],
[
"=pod\n\nL<Google(s)|https://www.google.com>." =>
qq([https://www.google.com Google(s)].\n\n),
'https with text'
],
[
qq(=pod\n\nL</"METHODS">) => qq([[#METHODS|"METHODS"]]\n\n),
'Internal link'
Expand Down

0 comments on commit 6c3b216

Please sign in to comment.