<div dir="ltr">Well, I personally don&#39;t believe in test pages that humans actually have to look at. Attached you&#39;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>&lt;ol&gt;&lt;li&gt;one&lt;/li&gt;&lt;/ol&gt;<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=&quot;url http outside&quot;][@href=&quot;<a href="http://www.wikicreole.org/">http://www.wikicreole.org/</a>&quot;][text()=&quot;<a href="http://www.wikicreole.org/">http://www.wikicreole.org/</a>&quot;]<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 &lt;a href=&quot;foo&quot; class=&quot;bar&quot;&gt;url&lt;/a&gt; and &lt;a class=&quot;bar&quot; href=&quot;foo&quot;&gt;url&lt;/a&gt; are equivalents (and the exact output depends on the Perl library version I&#39;m using.<br>
<br>I wouldn&#39;t mind collecting an edited subset of these tests on the Creole wiki. I&#39;d also be interested in other tests that I&#39;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">&lt;<a href="mailto:ioplex@gmail.com">ioplex@gmail.com</a>&gt;</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&#39;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>