Difference between revisions of "Module:Infobox/testcases"
Jump to navigation
Jump to search
test>Mr. Stradivarius (fix function name) |
test>Mr. Stradivarius (test template sandbox page instead) |
||
| Line 3: | Line 3: | ||
function p:test_hello() | function p:test_hello() | ||
| − | self:preprocess_equals_preprocess_many('{{ | + | self:preprocess_equals_preprocess_many('{{infobox/sandbox', '}}', '{{Infobox', '}}', { |
{[=[ | {[=[ | ||
|label1 = Label 1 | |label1 = Label 1 | ||
Revision as of 13:29, 10 May 2013
Documentation for this module may be created at Module:Infobox/testcases/doc
-- Example Unit tests for [[Module:Bananas]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_hello()
self:preprocess_equals_preprocess_many('{{infobox/sandbox', '}}', '{{Infobox', '}}', {
{[=[
|label1 = Label 1
|data1 = Data 1
]=]},
}, {nowiki = 'yes'})
end
return p