Module:Optional style/testcases
Appearance
This is the test cases page for the module Module:Optional style. Results of the test cases. |
local p = require('Module:UnitTests')
function p:test_something()
self:preprocess_equals_many('{{#invoke:Optional style|optional_style|', '}}', {
{
'',
''
},
{
'padding-left=2em',
'style="padding-left:2em;"'
},
{
'padding-left=',
''
},
{
'padding-left=2em|padding-right=4em',
'style="padding-left:2em;padding-right:4em;"'
},
{
'style=padding-left:2em;',
'style="padding-left:2em;"'
},
{
'style=padding-left:2em;|padding-right=4em',
'style="padding-right:4em;padding-left:2em;"'
},
})
end
return p