tables.t 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # Copyright (C) 2006 Alex Schroeder <alex@emacswiki.org>
  2. #
  3. # This program is free software; you can redistribute it and/or modify
  4. # it under the terms of the GNU General Public License as published by
  5. # the Free Software Foundation; either version 2 of the License, or
  6. # (at your option) any later version.
  7. #
  8. # This program is distributed in the hope that it will be useful,
  9. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. # GNU General Public License for more details.
  12. #
  13. # You should have received a copy of the GNU General Public License
  14. # along with this program; if not, write to the
  15. # Free Software Foundation, Inc.
  16. # 59 Temple Place, Suite 330
  17. # Boston, MA 02111-1307 USA
  18. require 't/test.pl';
  19. package OddMuse;
  20. use Test::More tests => 10;
  21. add_module('tables.pl');
  22. InitVariables();
  23. run_tests(split('\n',<<'EOT'));
  24. ||one||
  25. <table class="user"><tr class="odd first"><td>one</td></tr></table>
  26. ||one||
  27. <table class="user"><tr class="odd first"><td>one</td><td align="left"> </td></tr></table>
  28. || one two ||
  29. <table class="user"><tr class="odd first"><td align="center">one two </td></tr></table>
  30. introduction\n\n||one||two||three||\n||||one two||three||
  31. introduction<table class="user"><tr class="odd first"><td>one</td><td>two</td><td>three</td></tr><tr class="even"><td colspan="2">one two</td><td>three</td></tr></table>
  32. ||one||two||three||\n||||one two||three||\n\nfooter
  33. <table class="user"><tr class="odd first"><td>one</td><td>two</td><td>three</td></tr><tr class="even"><td colspan="2">one two</td><td>three</td></tr></table><p>footer</p>
  34. ||one||two||three||\n||||one two||three||\n\nfooter
  35. <table class="user"><tr class="odd first"><td>one</td><td>two</td><td>three</td></tr><tr class="even"><td colspan="2">one two</td><td>three</td></tr></table><p>footer</p>
  36. || one|| two|| three||\n|||| one two|| three||\n\nfooter
  37. <table class="user"><tr class="odd first"><td align="right">one</td><td align="right">two</td><td align="right">three</td></tr><tr class="even"><td colspan="2" align="right">one two</td><td align="right">three</td></tr></table><p>footer</p>
  38. ||one ||two ||three ||\n||||one two ||three ||\n\nfooter
  39. <table class="user"><tr class="odd first"><td align="left">one </td><td align="left">two </td><td align="left">three </td></tr><tr class="even"><td colspan="2" align="left">one two </td><td align="left">three </td></tr></table><p>footer</p>
  40. || one || two || three ||\n|||| one two || three ||\n\nfooter
  41. <table class="user"><tr class="odd first"><td align="center">one </td><td align="center">two </td><td align="center">three </td></tr><tr class="even"><td colspan="2" align="center">one two </td><td align="center">three </td></tr></table><p>footer</p>
  42. introduction\n\n||one||two||three||\n||||one two||three||\n\nfooter
  43. introduction<table class="user"><tr class="odd first"><td>one</td><td>two</td><td>three</td></tr><tr class="even"><td colspan="2">one two</td><td>three</td></tr></table><p>footer</p>
  44. EOT