use warnings; use strict; use Test::More 'no_plan'; use lib ('lib', '../lib'); use MKDoc::Text::Structured; my $text = undef; $text = MKDoc::Text::Structured::process ('This :-)is a;-) test :-('); is ($text, '
This :-)is a;-) test :-(
'); $text = MKDoc::Text::Structured::process ('test &-) test'); is ($text, 'test &-) test
'); $text = MKDoc::Text::Structured::process ('BBC (Brit Broad Corp :-) test'); is ($text, 'BBC (Brit Broad Corp :-) test
'); $text = MKDoc::Text::Structured::process ('BBC(Brit Broad Corp :-) test'); is ($text, 'BBC test
'); $text = MKDoc::Text::Structured::process ('BBC(Brit Broad Corp :-( ) test'); is ($text, 'BBC test
'); $text = MKDoc::Text::Structured::process ('This is a test: mailto:-)@mkdoc.com'); is ($text, 'This is a test: -)@mkdoc.com
'); __END__