#!perl BEGIN { chdir 't' if -d 't' } use strict; use warnings; use Test::More tests => 8; use Test::NoWarnings; use_ok 'Text::MediawikiFormat', as => 'wf', process_html => 0 or exit; ok exists $Text::MediawikiFormat::tags{blockorder}, 'T:MF should have a blockorder entry in %tags'; # isan ARRAY isa_ok $Text::MediawikiFormat::tags{blockorder}, 'ARRAY', '...and it should be an array'; like join( ' ', @{ $Text::MediawikiFormat::tags{blockorder} } ), qr/^code/, '...and code should come before everything'; my $wikitext = <first list item!, 'lists should be able to start on the first line of text'; like $htmltext, qr!href='Wiki%20Link'!, 'list item content should be formatted'; ### ### Dictionary Lists ### $wikitext = <
Term 1
definition 1.1
definition 1.2
Term 2
definition 2.1
definition 2.2
indented 1
indented 2
', 'dictionary lists format correctly';