Jump to content

Module:Infobox/testcases: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
test template sandbox page instead
Adding dataid
Line 7: Line 7:
|label1 = Label 1
|label1 = Label 1
|data1 = Data 1
|data1 = Data 1
|dataid1 = someid
]=]},
]=]},
}, {nowiki = 'yes'})
}, {nowiki = 'yes'})

Revision as of 07:04, 14 June 2014

-- 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
            |dataid1 = someid
        ]=]},
    }, {nowiki = 'yes'})
end

return p