Module:R from fictional object multi/testcases

-- Unit tests for Module:R from fictional object multi. Click talk page to run tests. local p = require('Module:UnitTests')

function p:test_01_multiple_categories self:preprocess_equals_sandbox_many('{{#invoke:R from fictional object multi', 'main|category=character redirects to lists', {		{"1=Arrow (TV series)", ""},		{"1=Arrow (TV series)|2=The Flash (2014 TV series)", ""},		{"1=Arrow (TV series)|2=The Flash (2014 TV series)|3=Supergirl (TV series)", ""},		{"1=Arrow (TV series)|2=The Flash (2014 TV series)|3=Supergirl (TV series)|4=Batwoman (TV series)", ""},		{"1=Arrow (TV series)|2=The Flash (2014 TV series)|3=Supergirl (TV series)|4=Batwoman (TV series)|5=Black Lightning (TV series)", ""},	}, {nowiki=1}) end

function p:test_02_types self:preprocess_equals_sandbox_many('{{#invoke:R from fictional object multi', 'main', {		{"category=character redirects to lists|1=Arrow (TV series)", ""},		{"category=element redirects to lists|1=Arrow (TV series)", ""},		{"category=episode redirects to lists|1=Arrow (TV series)", ""},		{"category=location redirects|1=Arrow (TV series)", ""},	}, {nowiki=1}) end

function p:test_03_sort self:preprocess_equals_sandbox_many('{{#invoke:R from fictional object multi', 'main', {		{"category=character redirects to lists|1=Arrow (TV series)|sort=Oliver", ""},		{"category=element redirects to lists|1=Arrow (TV series)|sort=Oliver", ""},		{"category=episode redirects to lists|1=Arrow (TV series)|sort=Oliver", ""},		{"category=location redirects|1=Arrow (TV series)|sort=Oliver", ""},	}, {nowiki=1}) end

return p