--<pre> Unit tests.  Click talk page to run tests.
local test1ExpectedResults = [=[<div><h2>Module information</h2></div>
<div><h3>Functions</h3><h4>testfunction</h4><div>Build function commentary structure from text..</div><div>Parameters</div><table class="wikitable sortable" style="width:100%;"><tr><th>Name</th><th>Type</th><th>purpose</th></tr><tr><td>test</td><td>string</td><td>program code.</td></tr></table><table class="wikitable sortable" style="width:100%;"><tr><th>Return type</th><th>Return purpose</th></tr><tr><td>table</td><td>function structure.</td></tr></table></div>]=] 
local codedoc = require ("Module:Codedoc")
local p ={
        options={nowiki=true}, --options 
        tests = {
            equals ={
                {"Test valid output", codedoc.main({'Module:Codedoc/testdata'}), test1ExpectedResults, {nowiki=1}},
return p

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.