<div dir="ltr">Well, I personally don't believe in test pages that humans actually have to look at. Attached you'll find my Creole unit tests written in Perl (for the Creole extension to Oddmuse). The first part (the run_tests) call is contains alternating input and expected output lines. To take the first two lines:<br>
<br># one<br><ol><li>one</li></ol><br><br>Then you have two blocks where I test alternatives using the tilde and linebreaks, and finally a larger block using XPath to run the test. Again, using the first example:<br>
<br>[[<a href="http://www.wikicreole.org/">http://www.wikicreole.org/</a>]]<br>//a[@class="url http outside"][@href="<a href="http://www.wikicreole.org/">http://www.wikicreole.org/</a>"][text()="<a href="http://www.wikicreole.org/">http://www.wikicreole.org/</a>"]<br>
<br>Clearly, you would either replace the @class test with something of your own devising, or strip it entirely. I had to use XPath because in this particular case <a href="foo" class="bar">url</a> and <a class="bar" href="foo">url</a> are equivalents (and the exact output depends on the Perl library version I'm using.<br>
<br>I wouldn't mind collecting an edited subset of these tests on the Creole wiki. I'd also be interested in other tests that I've missed.<br><br>Cheers<br>Alex<br><br><div class="gmail_quote">On Fri, Jul 25, 2008 at 11:10 PM, Michael B Allen <span dir="ltr"><<a href="mailto:ioplex@gmail.com">ioplex@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
<br>
I want to test my Creole implementation but I can't find any really<br>
good examples that stress all of the corner cases.<br>
<br>
Does anyone know of a good example page somewhere?<br>
<br>
Mike<br>
<br>
--<br>
Michael B Allen<br>
PHP Active Directory SPNEGO SSO<br>
<a href="http://www.ioplex.com/" target="_blank">http://www.ioplex.com/</a><br>
_______________________________________________<br>
<br>
wiki-standards mailing list. <a href="mailto:wiki-standards@wikisym.org">wiki-standards@wikisym.org</a><br>
<a href="http://www.wikisym.org/cgi-bin/mailman/listinfo/wiki-standards" target="_blank">http://www.wikisym.org/cgi-bin/mailman/listinfo/wiki-standards</a><br>
<br>
For the wiki-research, wiki-standards, wikisym-announce mailing lists, please see:<br>
<a href="http://www.wikisym.org/cgi-bin/mailman/listinfo" target="_blank">http://www.wikisym.org/cgi-bin/mailman/listinfo</a><br>
</blockquote></div><br></div>