Module:Separated entries/testcases
Appearance
![]() | This is the test cases page for the module Module:Separated entries. Results of the test cases. |
-- 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', 'AB'},
{'A|B|C', 'ABC'},
{'separator=,', ''},
{'separator=,|A', 'A'},
{'separator=,|A|B', 'A,B'},
{'conjunction=;', ''},
{'conjunction=;|A', 'A'},
{'conjunction=;|A|B', 'A;B'},
})
end
return p