setext.t 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 => 12;
  21. do 'modules/setext.pl';
  22. do 'modules/link-all.pl';
  23. run_tests(split('\n',<<'EOT'));
  24. foo
  25. foo
  26. ~foo~
  27. <i>foo</i>
  28. da *foo*
  29. da *foo*
  30. da **foo** bar
  31. da <b>foo</b> bar
  32. da `_**foo**_` bar
  33. da **foo** bar
  34. _foo_
  35. <em style="text-decoration: underline; font-style: normal;">foo</em>
  36. foo_bar_baz
  37. foo_bar_baz
  38. _foo_bar_ baz
  39. <em style="text-decoration: underline; font-style: normal;">foo bar</em> baz
  40. and\nfoo\n===\n\nmore\n
  41. and <h2>foo</h2><p>more</p>
  42. and\n\nfoo\n===\n\nmore\n
  43. and<h2>foo</h2><p>more</p>
  44. and\nfoo \n--- \n\nmore\n
  45. and <h3>foo</h3><p>more</p>
  46. and\nfoo\n---\n\nmore\n
  47. and <h3>foo</h3><p>more</p>
  48. EOT