Jump to content

Module:Footnotes/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Dragons flight (talk | contribs) at 04:35, 31 March 2013 (Created page with '-- Unit tests for Module:Citation. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_sfn() self:preprocess_equals_pre...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- Unit tests for [[Module:Citation]]. Click talk page to run tests.
local p = require('Module:UnitTests')
 
function p:test_sfn()
    self:preprocess_equals_preprocess_many('{{sfn/sandbox|', '}}', '{{sfn|', '}}', {
       { "Smith | Jones | 2004"
           
       }
    } )
end

function p:test_harvnb()
    self:preprocess_equals_preprocess_many('{{harvard citation no brackets/sandbox|', '}}', '{{harvnb|', '}}', {
       { "Smith | Jones | 2004"
           
       }
    } )
end

return p;