Jump to content

Module:CricketLeagueGroupStageSummary/testcases

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by Pkr206 (talk | contribs) at 15:58, 16 January 2025 (Created page with '-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests. local p = require('Module:UnitTests') -- Example unit test. p.LPL = function(frame) local args = getArgs(frame) local teams = { CS = { code = "CS", fullName = "Colombo Strikers", shortName = "CS", pageName = "Colombo Strikers" }, DS = { code = "DS", fullName = "Dambulla Sixers", shortName = "DS", pageName = "Dambulla Sixers"...'). The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')

-- Example unit test.
p.LPL = function(frame)
	local args = getArgs(frame)
	local teams = {
		CS = {
			code       = "CS",
			fullName   = "Colombo Strikers",
			shortName  = "CS",
			pageName   = "Colombo Strikers"
		},
		DS = {
			code       = "DS",
			fullName   = "Dambulla Sixers",
			shortName  = "DS",
			pageName   = "Dambulla Sixers"
		},
		GM = {
			code       = "GM",
			fullName   = "Galle Marvels",
			shortName  = "GM",
			pageName   = "Galle Marvels"
		},
		JK = {
			code       = "JK",
			fullName   = "Jaffna Kings",
			shortName  = "JK",
			pageName   = "Jaffna Kings"
		},
		KF = {
			code       = "KF",
			fullName   = "Kandy Falcons",
			shortName  = "KF",
			pageName   = "Kandy Falcons"
		}
	}
	return p.create(args, teams)
end

return p