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_1_multiple_categories_live self:preprocess_equals_many('', {		{"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_01_2_multiple_categories_sandbox self:preprocess_equals_many('', {		{"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_1_types_live self:preprocess_equals_many('', {		{"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_02_2_types_sandbox self:preprocess_equals_many('', {		{"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_1_sort_live self:preprocess_equals_many('', {		{"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

function p:test_03_2_sort_sandbox self:preprocess_equals_many('', {		{"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