Module:Television episode disambiguation description/testcases

-- Unit tests for Module:Television episode disambiguation description. Click talk page to run tests. local p = require('Module:UnitTests')

function p:test_main self:preprocess_equals_many(, {		{'name=Pickle Rick', '"Pickle Rick", 3rd episode of the third season of \'\'Rick and Morty\'\},		{'name=The End (Lost)', '"The End" (\'\'Lost\'\'), 17th and 18th episodes of the sixth season of \'\'Lost\'\},		{'name=Serenity (Firefly episode)', '"Serenity" (\'\'Firefly\'\' episode), 1st episode of the first season of \'\'Firefly\'\},		{'name=World Wharf II: The Wharfening (or How Bob Saves/Destroys the Town – Part II)|not_disambiguated=yes', '"World Wharf II: The Wharfening (or How Bob Saves/Destroys the Town – Part II)", 22nd episode of the fourth season of \'\'Bob\'s Burgers\'\},		{'name=Hush (Buffy the Vampire Slayer)|link_only=yes|season_num=1|episode_num=1', '"Hush" (\'\'Buffy the Vampire Slayer\'\')'},		{'name=Judgment Night (The Twilight Zone)', '"Judgment Night" (\'\'The Twilight Zone\'\'), 10th episode of the first season of \'\'The Twilight Zone\'\}, {'name=Nelson v. Murdock', '"Nelson v. Murdock", 10th episode of the first season of \'\'Daredevil\'\''}, {'name=Template:Television episode disambiguation description/testcases/test infoboxes', '"Template:Television episode disambiguation description/testcases/test infoboxes", an episode of \'\'The Huckleberry Hound Show Hokey Wolf\'\''}, {'', '&#x3c;span style="font-size:100%;" class="error"&#x3e;error: an article title is required.&#x3c;/span&#x3e;'}, {'name=', '&#x3c;span style="font-size:100%;" class="error"&#x3e;error: an article title is required.&#x3c;/span&#x3e;'}, }, {nowiki=1}) end

function p:test_sandbox_main self:preprocess_equals_many(, {		{'name=Pickle Rick', '"Pickle Rick", 3rd episode of the third season of \'\'Rick and Morty\'\},		{'name=The End (Lost)', '"The End" (\'\'Lost\'\'), 17th and 18th episodes of the sixth season of \'\'Lost\'\},		{'name=Serenity (Firefly episode)', '"Serenity" (\'\'Firefly\'\' episode), 1st episode of the first season of \'\'Firefly\'\},		{'name=World Wharf II: The Wharfening (or How Bob Saves/Destroys the Town – Part II)|not_disambiguated=yes', '"World Wharf II: The Wharfening (or How Bob Saves/Destroys the Town – Part II)", 22nd episode of the fourth season of \'\'Bob\'s Burgers\'\},		{'name=Hush (Buffy the Vampire Slayer)|link_only=yes|season_num=1|episode_num=1', '"Hush" (\'\'Buffy the Vampire Slayer\'\')'},		{'name=Judgment Night (The Twilight Zone)', '"Judgment Night" (\'\'The Twilight Zone\'\'), 10th episode of the first season of \'\'The Twilight Zone\'\}, {'name=Nelson v. Murdock', '"Nelson v. Murdock", 10th episode of the first season of \'\'Daredevil\'\''}, {'name=Template:Television episode disambiguation description/testcases/test infoboxes', '"Template:Television episode disambiguation description/testcases/test infoboxes", an episode of \'\'The Huckleberry Hound Show Hokey Wolf\'\''}, {'', '&#x3c;span style="font-size:100%;" class="error"&#x3e;error: an article title is required.&#x3c;/span&#x3e;'}, {'name=', '&#x3c;span style="font-size:100%;" class="error"&#x3e;error: an article title is required.&#x3c;/span&#x3e;'}, }, {nowiki=1}) end

return p