Module:Infobox television season name/testcases
Appearance
![]() | This is the test cases page for the module Module:Infobox television season name. Results of the test cases. |
-- Unit tests for [[Infobox television season name]]. Click talk page to run tests.
local p = require('Module:UnitTests')
function p:test_1_checkPrevSeason_live()
self:preprocess_equals_many('{{#invoke:Infobox television season name|checkPrevSeason|', '}}', {
{'Big Brother 2 (American season).', ""},
{'Lost (season 3)', ""},
{'The Flash (2014 season 3)', ""},
{'Dallas (1978 TV series) (season 3)', ""},
{'Teenage Mutant Ninja Turtles (1987 TV series, season 2)', ""},
})
end
function p:test_2_checkNextSeason_live()
self:preprocess_equals_many('{{#invoke:Infobox television season name|checkNextSeason|', '}}', {
{'Big Brother 2 (American season).', ""},
{'Lost (season 3)', ""},
{'The Flash (2014 season 3)', ""},
{'Dallas (1978 TV series) (season 3)', ""},
{'Teenage Mutant Ninja Turtles (1987 TV series, season 2)', ""},
})
end
function p:test_3_checkAll_live()
self:preprocess_equals_many('{{#invoke:Infobox television season name|checkAll|', '}}', {
{'Big Brother 2 (American season).', ""},
{'Lost (season 3)', ""},
{'The Flash (2014 season 3)', ""},
{'Dallas (1978 TV series) (season 3)', ""},
{'Teenage Mutant Ninja Turtles (1987 TV series, season 2)', ""},
})
end
function p:test_4_getPrevSeasonArticle_live()
self:preprocess_equals_many('{{#invoke:Infobox television season name|getPrevSeasonArticle|', '}}', {
{'Big Brother 2 (American season).', ""},
{'Lost (season 3)', ""},
{'The Flash (2014 season 3)', ""},
{'Dallas (1978 TV series) (season 3)', ""},
{'Teenage Mutant Ninja Turtles (1987 TV series, season 2)', ""},
})
end
function p:test_5_getNextSeasonArticle_live()
self:preprocess_equals_many('{{#invoke:Infobox television season name|getNextSeasonArticle|', '}}', {
{'Big Brother 2 (American season).', ""},
{'Lost (season 3)', ""},
{'The Flash (2014 season 3)', ""},
{'Dallas (1978 TV series) (season 3)', ""},
{'Teenage Mutant Ninja Turtles (1987 TV series, season 2)', ""},
})
end
function p:test_1_checkPrevSeason_sandbox()
self:preprocess_equals_many('{{#invoke:Infobox television season name/sandbox|checkPrevSeason|', '}}', {
{'Big Brother 2 (American season).', ""},
{'Lost (season 3)', ""},
{'The Flash (2014 season 3)', ""},
{'Dallas (1978 TV series) (season 3)', ""},
{'Teenage Mutant Ninja Turtles (1987 TV series, season 2)', ""},
})
end
function p:test_2_checkNextSeason_sandbox()
self:preprocess_equals_many('{{#invoke:Infobox television season name/sandbox|checkNextSeason|', '}}', {
{'Big Brother 2 (American season).', ""},
{'Lost (season 3)', ""},
{'The Flash (2014 season 3)', ""},
{'Dallas (1978 TV series) (season 3)', ""},
{'Teenage Mutant Ninja Turtles (1987 TV series, season 2)', ""},
})
end
function p:test_3_checkAll_sandbox()
self:preprocess_equals_many('{{#invoke:Infobox television season name/sandbox|checkAll|', '}}', {
{'Big Brother 2 (American season).', ""},
{'Lost (season 3)', ""},
{'The Flash (2014 season 3)', ""},
{'Dallas (1978 TV series) (season 3)', ""},
{'Teenage Mutant Ninja Turtles (1987 TV series, season 2)', ""},
})
end
function p:test_4_getPrevSeasonArticle_sandbox()
self:preprocess_equals_many('{{#invoke:Infobox television season name/sandbox|getPrevSeasonArticle|', '}}', {
{'Big Brother 2 (American season).', ""},
{'Lost (season 3)', ""},
{'The Flash (2014 season 3)', ""},
{'Dallas (1978 TV series) (season 3)', ""},
{'Teenage Mutant Ninja Turtles (1987 TV series, season 2)', ""},
})
end
function p:test_5_getNextSeasonArticle_sandbox()
self:preprocess_equals_many('{{#invoke:Infobox television season name/sandbox|getNextSeasonArticle|', '}}', {
{'Big Brother 2 (American season).', ""},
{'Lost (season 3)', ""},
{'The Flash (2014 season 3)', ""},
{'Dallas (1978 TV series) (season 3)', ""},
{'Teenage Mutant Ninja Turtles (1987 TV series, season 2)', ""},
})
end