Jump to content

Module:Separated entries/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by MarioGom (talk | contribs) at 16:02, 17 April 2021. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Unit tests for [[Module:Separated entries]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_main()
    self:preprocess_equals_many('{{#invoke:Separated entries|main|', '}}', {
    	{'', ''},
        {'A', 'A'},
        {'A|B', 'A and B'},
        {'A|B|C', 'A, B and C'},
    })
end

return p