Module:Formatted appearance/testcases

-- Unit tests for Module:Formatted appearance. Click talk page to run tests. local p = require('Module:UnitTests')

function p:test_generic self:preprocess_equals_many(, {		{'major_work=Arrow', '\'\'Arrow\'\},		{'minor_work=Pilot', '"Pilot"'},		{'date=October 10, 2012', 'October 10, 2012'},		{'major_work=Arrow|minor_work=Pilot', '\"Pilot\"

\'\'Arrow\'\''}, {'major_work=Arrow|date=October 10, 2012', '\'\'Arrow\'\'

October 10, 2012'}, {'minor_work=Pilot|date=October 10, 2012', '"Pilot"

October 10, 2012'}, {'major_work=Arrow|minor_work=Pilot|date=October 10, 2012', '"Pilot"

\'\'Arrow\'\'

October 10, 2012'}, {'major_work=Arrow|minor_work=Pilot|date=October 10, 2012', '"Pilot"

\'\'Arrow\'\'

October 10, 2012'}, }) end function p:test_comic	self:preprocess_equals_many('', { {'major_work=The Incredible Hulk', '\'\'The Incredible Hulk\'\''}, {'issue=180', ''}, {'issue=#180', ''}, {'date=October, 1974', 'October, 1974'}, {'major_work=The Incredible Hulk|issue=180', '\'\'The Incredible Hulk\'\' #180'}, {'major_work=The Incredible Hulk|date=October, 1974', '\'\'The Incredible Hulk\'\'

October, 1974'}, {'issue=180|date=October, 1974', 'October, 1974'}, {'major_work=The Incredible Hulk|issue=180|_date=October, 1974', '\'\'The Incredible Hulk\'\' #180

October, 1974'}, {'major_work=The Incredible Hulk|issue=Issue 180|date=October, 1974', '\'\'The Incredible Hulk\'\' Hulk Issue #180

October, 1974'}, {'major_work=The Incredible Hulk|issue=Issue #180|date=October, 1974', '\'\'The Incredible Hulk\'\' Issue #180

October, 1974'}, {'major_work=The Incredible Hulk|issue=180|date=October 1974', '\'\'The Incredible Hulk\'\' #180

October 1974'}, }) end

return p