# Copyright (C) 2006 Alex Schroeder # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the # Free Software Foundation, Inc. # 59 Temple Place, Suite 330 # Boston, MA 02111-1307 USA require 't/test.pl'; package OddMuse; use Test::More tests => 43; clear_pages(); add_module('usemod.pl'); InitVariables(); run_tests(split('\n',<<'EOT')); * ''one\n** two # one\n# two
  1. one
  2. two
* one\n# two
  1. two
# one\n\n#two
  1. one

#two

# one\n# two\n## one and two\n## two and three\n# three
  1. one
  2. two
    1. one and two
    2. two and three
  3. three
# one and #\n# two and # more
  1. one and #
  2. two and # more
: one\n: two\n:: one and two\n:: two and three\n: three
one
two
one and two
two and three
three
: one and :)\n: two and :) more
one and :)
two and :) more
: one\n\n:two
one

:two

; one:eins\n;two:zwei
one
eins ;two:zwei
; one:eins\n\n; two:zwei
one
eins
two
zwei
; a: b: c\n;; x: y: z
a
b: c
x
y: z
* foo bold\n* bar This is ''emphasized''. This is emphasized. This is '''strong'''. This is strong. This is ''longer emphasized'' text. This is longer emphasized text. This is '''longer strong''' text. This is longer strong text. This is '''''emphasized and bold''''' text. This is emphasized and bold text. This is ''emphasized '''and bold''''' text. This is emphasized and bold text. This is '''bold ''and emphasized''''' text. This is bold and emphasized text. This is ''emphasized text containing '''longer strong''' text''. This is emphasized text containing longer strong text. This is '''strong text containing ''emph'' text'''. This is strong text containing emph text. ||one||
one
||one||
one
|| one ''two'' ||
one two
|| one two ||
one two
introduction\n\n||one||two||three||\n||||one two||three|| introduction
onetwothree
one twothree
||one||two||three||\n||||one two||three||\n\nfooter
onetwothree
one twothree

footer

||one||two||three||\n||||one two||three||\n\nfooter
onetwothree
one twothree

footer

|| one|| two|| three||\n|||| one two|| three||\n\nfooter
onetwothree
one twothree

footer

||one ||two ||three ||\n||||one two ||three ||\n\nfooter
one two three
one two three

footer

|| one || two || three ||\n|||| one two || three ||\n\nfooter
one two three
one two three

footer

introduction\n\n||one||two||three||\n||||one two||three||\n\nfooter introduction
onetwothree
one twothree

footer

source
 source
source\n etc\n
 source\n etc
source\n \n etc\n
 source\n \n etc
source\n \n etc\n\nother
 source\n \n etc

other

= title =

title

==title=

title

========fnord=
fnord
== nada\nnada == == nada nada == == nada ==
 == nada ==
==[[Free Link]]==

[[Free Link]]

EOT