#!/usr/bin/perl use Test::More tests => 45; use_ok("Quiki::Formatter::HTML"); is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); one paragraph. two paragraphs. EOI

one paragraph.

two paragraphs.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); one paragraph. two paragraphs. EOI

one paragraph.

two paragraphs.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); one paragraph < other paragraph. two paragraphs. EOI

one paragraph < other paragraph.

two paragraphs.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); one paragraph with a [[link]]. two paragraphs. EOI

one paragraph with a link.

two paragraphs.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); one paragraph with [[more]] than a [[link]]. two paragraphs. EOI

one paragraph with more than a link.

two paragraphs.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); one paragraph with [[http://www.google.com|an external link]]. two paragraphs. EOI

one paragraph with an external link.

two paragraphs.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); one paragraph with a [[named link|link]]. two paragraphs. EOI

one paragraph with a link.

two paragraphs.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); one paragraph with a **bold**. two paragraphs. EOI

one paragraph with a bold.

two paragraphs.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); one paragraph with a **bold * with \*\* stars**. two paragraphs. EOI

one paragraph with a bold * with ** stars.

two paragraphs.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); one paragraph with an //italic//. two paragraphs. EOI

one paragraph with an italic.

two paragraphs.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); one paragraph with an //italic / with \/\/ slashes//. two paragraphs. EOI

one paragraph with an italic / with // slashes.

two paragraphs.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); foo /\/ bar \** zbr \/\/ ugh \*\*. EOI

foo // bar ** zbr // ugh **.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); foo \\ bar \[[ zbr \]] ugh \*\*. EOI

foo \ bar [[ zbr ]] ugh **.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); foo ''bar'' \'' zbr \'' ugh. EOI

foo bar '' zbr '' ugh.

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); will //**bold and italic**// work? EOI

will bold and italic work?

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); will **//bold and italic//** work? EOI

will bold and italic work?

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); will **//__bold and italic and underline__//** work? EOI

will bold and italic and underline work?

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); will __underline__ work? __foo _ bar__ EOI

will underline work? foo _ bar

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); will [[link|Links **with** formatting //work//]]? EOI

will Links with formatting work?

EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); ======foo====== =====bar===== ====zbr==== A paragraph. ===ugh=== ==foo bar //or// zbr ugh== =zbr !\= ugh= EOI

foo

bar

zbr

A paragraph.

ugh

foo bar or zbr ugh
zbr != ugh
EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); ------------ --------------------- --------------------------------- EOI


EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); ------------ foo bar. ------------- ------------ EOI

foo bar.



EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); foo bar zbr xpto EOI

foo

bar
zbr

xpto

EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); foo bar zbr xpto EOI

foo

bar
zbr

xpto

EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); foo bar zbr xpto xpto EOI

foo

bar
zbr
  xpto

xpto

EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); foo bar zbr xpto xpto EOI

foo

  bar
zbr
  xpto

xpto

EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); * one * two EOI EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); - one - two EOI
  1. one
  2. two
EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); * one * one dot one * one dot two * two EOI EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); - one - one dot one - one dot two - two * two dot one * two dot two EOI
  1. one
    1. one dot one
    2. one dot two
  2. two
EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); - a - b - c - d EOI
  1. a
    1. b
      1. c
        1. d
EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); - a * b - c * d EOI
  1. a
EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); - a * b EOI
  1. a
EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); ^ a ^ b ^ c ^ EOI
a b c
EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); | a | b | c | EOI
a b c
EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); ^ a ^ b ^ c ^ | a | b | c | EOI
a b c
a b c
EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); ^ a ^ b ^ c ^ | a |b | c| EOI
a b c
a b c
EOO is(Quiki::Formatter::HTML::format({SCRIPT_NAME=>'quiki'},<<'EOI'), <<'EOO'); ======foo====== hello world EOI

foo

hello world

EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); {{http://www.xpto.foo/foo.png}} EOI

http://www.xpto.foo/foo.png

EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); {{ http://www.xpto.foo/foo.png}} EOI

http://www.xpto.foo/foo.png

EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); {{http://www.xpto.foo/foo.png }} EOI

http://www.xpto.foo/foo.png

EOO # The space in the example bellow IS IMPORTANT is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); * one * two * one * two EOI EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); | [[http://www.google.com|a]] | b | c | EOI
a b c
EOO is(Quiki::Formatter::HTML::format({},<<'EOI'), <<'EOO'); Um corpus retirado do [[http://urd.let.rug.nl/tiedeman/OPUS/|OPUS]], que consiste nas legendas em Português do site [[http://www.opensubtitles.org/]]. EOI

Um corpus retirado do OPUS, que consiste nas legendas em Português do site http://www.opensubtitles.org/.

EOO