Module:Infobox/testcases: Difference between revisions
Appearance
Content deleted Content added
try setting test cases up |
fix function name |
||
Line 3: | Line 3: | ||
function p:test_hello() |
function p:test_hello() |
||
self: |
self:preprocess_equals_preprocess_many('{{#invoke:Infobox|infobox', '}}', '{{Infobox', '}}', { |
||
{[=[ |
{[=[ |
||
|label1 = Label 1 |
|label1 = Label 1 |
Revision as of 16:59, 4 April 2013
![]() | This is the test cases page for the module Module:Infobox. Results of the test cases. |
-- 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('{{#invoke:Infobox|infobox', '}}', '{{Infobox', '}}', {
{[=[
|label1 = Label 1
|data1 = Data 1
]=]},
}, {nowiki = 'yes'})
end
return p