Difference between revisions of "Module:Sort title/testcases"

From blackwiki
Jump to navigation Jump to search
blackwiki>Gonnym
(Created page with '-- Example Unit tests for Module:Bananas. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_1_getSortKey_sandbox() self:p...')
 
blackwiki>Gonnym
Line 2: Line 2:
 
local p = require('Module:UnitTests')
 
local p = require('Module:UnitTests')
  
function p:test_1_getSortKey_sandbox()
+
function p:test_1_testcases_sandbox()
 
self:preprocess_equals_many('{{#invoke:Sort title|testcases|', '}}', {
 
self:preprocess_equals_many('{{#invoke:Sort title|testcases|', '}}', {
 
{'Lost', "Lost"},
 
{'Lost', "Lost"},

Revision as of 22:00, 5 July 2019

Documentation for this module may be created at Module:Sort title/testcases/doc

-- Example Unit tests for [[Module:Bananas]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_1_testcases_sandbox()
	self:preprocess_equals_many('{{#invoke:Sort title|testcases|', '}}', {
		{'Lost', "Lost"},
		{'Lost (TV series)', "Lost (TV series)"},
		{'Lost (2004 TV series)', "Lost (2004 TV series)"},
		{'Lost (American TV series)', "Lost (American TV series)"},
		{'The Flash', "Flash, The"},
		{'The Flash (TV series)', "Flash, The (TV series)"},
		{'Pilot (The Flash)', "Pilot (Flash, The)"},
		{'The Trap (The Flash)', "Trap, The (Flash, The)"},
		{'4,722 Hours', "4722 Hours"},
		{'4,722 Hours (Agents of S.H.I.E.L.D.)', "4722 Hours (Agents of S.H.I.E.L.D.)"}
	})
end

return p