Module:Political party/testcases
Appearance
![]() | This is the test cases page for the module Module:Political party. Results of the test cases. |
-- Unit tests for [[Module:Political party]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_01_bad_values()
self:preprocess_equals_sandbox_many('{{#invoke:Political party', 'fetch', {
{'Aaaaaaaaaaa|color', 'Aaaaaaaaaaa'},
{'Aaaaaaaaaaa|shortname', 'Aaaaaaaaaaa'},
{'aontú|color', ''},
}, {nowiki=1})
end
function p:test_02_fallback_values()
self:preprocess_equals_sandbox_many('{{#invoke:Political party', 'fetch', {
{'A test no values|color', ''},
{'Aontú|shortname', 'Aon'},
{'Actual Equality|shortname', 'Actual Equality'},
{'Actual Equality|abbrev', 'Actual Equality'},
}, {nowiki=1})
end
return p