From 0fd98d6dfbe434b5490eee682e36c7a8bc355b58 Mon Sep 17 00:00:00 2001 From: Alex Schroeder Date: Tue, 30 Jan 2007 15:36:23 +0000 Subject: [PATCH] New tests. --- t/bbcode.t | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 t/bbcode.t diff --git a/t/bbcode.t b/t/bbcode.t new file mode 100644 index 00000000..2f0b2c46 --- /dev/null +++ b/t/bbcode.t @@ -0,0 +1,42 @@ +# Copyright (C) 2007 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 => 7; + +clear_pages(); + +do 'modules/bbcode.pl'; + +run_tests(split('\n',<<'EOT')); +[b]this text is bold[/b] +this text is bold +[i]this text is italic[/i] +this text is italic +[u]this text is underlined[/u] +this text is underlined +[color=blue]this text is blue[/color] +this text is blue +[size=+2]this text is two sizes larger than normal[/size] +this text is two sizes larger than normal +[size=test]this text is two sizes larger than normal[/size] +[size=test]this text is two sizes larger than normal[/size] +[font=courier]this text is in the courier font[/font] +this text is in the courier font +EOT