#!perl BEGIN { chdir 't' if -d 't' } use strict; use warnings; use Test::More tests => 4; use Test::NoWarnings; use Text::MediawikiFormat as => 'wf', prefix => 'rootdir/wiki.pl?page=', process_html => 0; my $wikitext = <!m, 'should create links from StudlyCaps if implicit_links is left alone'; $htmltext = wf( $wikitext, {}, { implicit_links => 0 } ); unlike( $htmltext, qr!!m, '...and if implicit_links set to 0' ); $htmltext = wf( $wikitext, {}, { implicit_links => 1 } ); like( $htmltext, qr!!m, '...and if implicit_links set to 0' );