tables.t 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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 3 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, see <http://www.gnu.org/licenses/>.
  15. require './t/test.pl';
  16. package OddMuse;
  17. use Test::More tests => 10;
  18. add_module('tables.pl');
  19. InitVariables();
  20. run_tests(split('\n',<<'EOT'));
  21. ||one||
  22. <table class="user"><tr class="odd first"><td>one</td></tr></table>
  23. ||one||
  24. <table class="user"><tr class="odd first"><td>one</td><td align="left"> </td></tr></table>
  25. || one two ||
  26. <table class="user"><tr class="odd first"><td align="center">one two </td></tr></table>
  27. introduction\n\n||one||two||three||\n||||one two||three||
  28. 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>
  29. ||one||two||three||\n||||one two||three||\n\nfooter
  30. <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>
  31. ||one||two||three||\n||||one two||three||\n\nfooter
  32. <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>
  33. || one|| two|| three||\n|||| one two|| three||\n\nfooter
  34. <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>
  35. ||one ||two ||three ||\n||||one two ||three ||\n\nfooter
  36. <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>
  37. || one || two || three ||\n|||| one two || three ||\n\nfooter
  38. <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>
  39. introduction\n\n||one||two||three||\n||||one two||three||\n\nfooter
  40. 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>
  41. EOT