Mô đun:Template test case/testcases

-- Unit tests for Mô đun:Template test case. Click talk page to run tests.
local p = require('Mô đun:UnitTests')
function p:test01_columns()
self:preprocess_equals_preprocess(
'Lorem ipsum',
'Lorem ipsum'
)
end
function p:test01_columns_nowiki()
self:preprocess_equals_preprocess(
'Lorem ipsum',
'Lorem ipsum',
{nowiki=1}
)
end
function p:test02_showheader()
self:preprocess_equals_preprocess(
'Lorem ipsum',
'Lorem ipsum'
)
end
function p:test02_showheader_nowiki()
self:preprocess_equals_preprocess(
'Lorem ipsum',
'Lorem ipsum',
{nowiki=1}
)
end
function p:test03_caption()
self:preprocess_equals_preprocess(
'Lorem ipsum',
'Lorem ipsum'
)
end
function p:test03_caption_nowiki()
self:preprocess_equals_preprocess(
'Lorem ipsum',
'Lorem ipsum',
{nowiki=1}
)
end
function p:test04_showcaption()
self:preprocess_equals_preprocess(
'Lorem ipsum',
'Lorem ipsum'
)
end
function p:test04_showcaption_nowiki()
self:preprocess_equals_preprocess(
'Lorem ipsum',
'Lorem ipsum',
{nowiki=1}
)
end
function p:test05_addline()
self:preprocess_equals_preprocess(
,
,
{stripmarker=true}
)
end
function p:test05_addline_nowiki()
self:preprocess_equals_preprocess(
,
,
{nowiki=1,stripmarker=true}
)
end
function p:test06_output()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true}
)
end
function p:test07_output()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true}
)
end
function p:test08_prefix()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true}
)
end
function p:test09_prefix()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true}
)
end
function p:test10_collapsible()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true}
)
end
function p:test10_collapsible_nowiki()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true, nowiki=true}
)
end
function p:test11_collapsible_title()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true}
)
end
function p:test11_collapsible_title_nowiki()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true, nowiki=true}
)
end
function p:test12_collapsible_titlecode()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true}
)
end
function p:test12_collapsible_titlecode_nowiki()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{nowiki=true,stripmarker=true}
)
end
function p:test13_wantdiff()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true}
)
end
function p:test13_wantdiff_nowiki()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true, nowiki=true}
)
end
function p:test13_wantdiff_2_wiki()
self:preprocess_equals_preprocess(
'Lorem ipsum',
'Lorem ipsum',
{stripmarker=true}
)
end
function p:test13_wantdiff_2()
self:preprocess_equals_preprocess(
'Lorem ipsum',
'Lorem ipsum',
{stripmarker=true, nowiki=true}
)
end
function p:test13_wantdiff_3()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true}
)
end
function p:test13_wantdiff_3_nowiki()
self:preprocess_equals_preprocess(
'm=1,51',
'm=1,51',
{stripmarker=true, nowiki=true}
)
end
function p:test14_equals_sign_parameter()
self:preprocess_equals_preprocess(
,
,
{stripmarker=true, nowiki=true}
)
end
return p