Search Results: Module:CallAssert/sandbox

Sorry, the article you're looking for isn't specifically available. Here are related topics:


Module:CallAssert/doc
Jumat, 2024-08-30 03:32:01

or false. This is similar to the built-in function assert, but unlike it, callAssert itself calls the function, whose return value is to be checked. This...

Click to read more »
Module:Page/sandbox
Minggu, 2025-07-20 15:56:44

local callAssert = require('Module:CallAssert') local function main(frame, field) local args, pargs = frame.args, ( frame:getParent() or {} ).args or...

Click to read more »
Module:Hatnote/testcases
Senin, 2026-03-09 22:46:37

----------------------------------------------- function suite:assertParentFrameCallEquals(expected, func, args) args = args or {} local current =...

Click to read more »
Module:Mock title/testcases
Jumat, 2024-05-24 21:30:40

self:assertTitlesAreEqual( mw.title.new('Wikipedia:Sandbox'), realSandboxTitle ) self:assertTitlesAreEqual( mw.title.makeTitle(4, 'Sandbox'), ...

Click to read more »
Module:ScribuntoUnit/sandbox
Kamis, 2026-01-29 19:46:34

ScribuntoUnit:assertTrue(actual, message) if not actual then DebugHelper.raise({ScribuntoUnit = true, text = string.format("Failed to assert that %s...

Click to read more »
Module:Format link/testcases
Rabu, 2021-12-29 22:52:37

----------------------------------------------- function suite:assertParentFrameCallEquals(expected, func, args) args = args or {} local current =...

Click to read more »
Module:Adjacent stations/sandbox
Jumat, 2026-03-13 19:56:20

local title = mw.title.new('Module:Adjacent stations/' .. system --[[ .. '/sandbox']]) if not (title and title.exists) then return nil end end local success...

Click to read more »
Module:Icon/testcases
Senin, 2026-03-09 22:48:51

function suite.runSandbox(...) mIcon = require('Module:Icon/sandbox') return suite.run(...) end -- Use a shortcut function to call mIcon._main using...

Click to read more »
Module:Italic title/sandbox
Kamis, 2026-03-05 20:57:34

Returns string. local function italicize(s) assert(type(s) == 'string', 's was not a string') assert(s ~= '', 's was the empty string') return...

Click to read more »
Module:Check DYK hook/testcases
Senin, 2026-03-09 23:06:01

-- Sandbox run -------------------------------------------------------------------------------- function suite.runSandbox(...) mCheckDYKHook...

Click to read more »
Module:Sandbox/Aidan9382/Benchmarker
Sabtu, 2025-10-18 00:36:36

be disruptive -- -- Be careful including this module outside of sandboxes -- -- ===================================================================...

Click to read more »
Module:Arguments/testcases
Jumat, 2026-01-30 21:37:58

parentTitle .. '/sandbox')) end function suite:assertFrameOnly(args) self:assertEquals(d.firstFrameArg, args[1], nil, 1) self:assertEquals(nil, args[2]...

Click to read more »
Module:Sandbox/Biggins/LDSverseWS
Jumat, 2020-08-07 10:41:35

the lion's share of (what is currently called) Template:LDS/sandbox. local p = {} -- TODO: -- Take out the assert statements and handle errors more gracefully...

Click to read more »
Module:Sandbox/Izno/citationTests
Sabtu, 2021-02-20 14:27:59

-- we never call cs1 directly because it doesn't have a nice implementation -- as a module, so comment out below line -- local myModule = require('Module:Citation/CS1')...

Click to read more »
Module:Sandbox/Grufo
Jumat, 2025-10-03 21:16:31

`checkArgs` used by `newChild`, `callParserfunction`, etc. does this elseif 'number' == vt then v = tostring(v) else assert('string' == vt, 'invalid...

Click to read more »
Module:Jf-JSON/sandbox
Minggu, 2018-02-18 02:54:37

onto the -- message as well), and then calls JSON.assert(), which itself defaults -- to Lua's built-in assert(), and can also be overridden. -- -- ...

Click to read more »
Module:Italic title/testcases
Kamis, 2026-03-05 01:25:59

ScribuntoUnit.new() function suite.run_sandbox(frame) mItalicTitle = require('Module:Italic title/sandbox') return suite.run(frame) end local function...

Click to read more »
Module:Random/sandbox
Selasa, 2023-04-04 01:40:10

often. math.randomseed(math.floor(os.time() / cfg.seedRefreshRate)) end assert(type(args) == 'table', 'the second argument to p.main must be a table')...

Click to read more »
Module:Convert/sandbox
Senin, 2026-03-02 10:48:21

data_module, text_module local sandbox = config.sandbox and ('/' .. config.sandbox) or '' data_module = "Module:Convert/data" .. sandbox text_module = "Module:Convert/text"...

Click to read more »
Module:IP/testcases
Senin, 2026-03-09 22:51:53

function suite:assertSelfParameterError(class, objName, method, func, ...) local message = string.format( 'IP: invalid %s object. Did you call %s with a...

Click to read more »
Module:Buffer/sandbox
Kamis, 2025-12-18 07:41:21

if clear~=0 then assert(type(clear)=='table', debug.traceback('Buffer:_cc can only "clear" tables. Did you forget to call with a colon?', 2))--errors...

Click to read more »
Module:Wd/sandbox
Jumat, 2025-08-08 00:45:17

trim(frame.args[1]) if f == "main" then throwError("main-called-twice") end assert(p["_"..f], errorText('no-such-function', f)) -- copy arguments...

Click to read more »
Module:Disambiguation/testcases
Selasa, 2025-02-04 15:25:09

local mDab = require('Module:Disambiguation/sandbox') local ScribuntoUnit = require('Module:ScribuntoUnit') local mMockTitle = require('Module:Mock title')...

Click to read more »
Module:Sandbox/Bawolff/canvas
Rabu, 2025-01-22 23:08:02

Did you use '.' instead of ':'?" ) assert( type(x) == "number", "x argument to scale must be a number" ) assert( type(y) == "number", "y argument to...

Click to read more »
Module:Medical cases chart/sandbox
Kamis, 2025-09-04 21:12:04

yesno = require('Module:Yesno') local BarBox = unpack(require('Module:Bar/sandbox')) local lang = mw.getContentLanguage() local language = lang:getCode()...

Click to read more »
Module:Mapframe/sandbox
Selasa, 2026-02-10 19:36:31

contains {{coord}} "Coord", "Coord/sandbox", "NRHP row", "NRHP row/sandbox", "WikidataCoord", "WikidataCoord/sandbox", "Wikidatacoord", "Wikidata coord"...

Click to read more »
Module:Diff/sandbox
Kamis, 2025-10-09 23:38:15

---------------------- local function diff(old, new, separator) assert(old) assert(new) local tbl_new = split(new, separator) local tbl_old = split(old...

Click to read more »
Module:IP/sandbox
Minggu, 2023-03-19 04:48:22

IPCollection function IPCollection.new(version) assert( version == V4 or version == V6, 'IPCollection.new called with an invalid version' ) local obj =...

Click to read more »
Module:Sandbox/Erutuon/Climate/stats
Rabu, 2024-04-17 18:46:03

arr_func = function (self, arr, i, j) i = i or 1 j = j or #arr assert(i > 0 and j > 0) if i == j then return arr[i] elseif i < j...

Click to read more »
Module:Date/sandbox
Rabu, 2026-02-18 12:27:47

then return end if is_sub then y = -y m = -m end assert(-11 <= m and m <= 11) y = lhs.year + y m = lhs.month + m if m >...

Click to read more »
Module:External links/sandbox
Sabtu, 2024-08-10 22:29:38

langcode, "[pP]%d+") and "" or linkTemplate.langcode, category = {} } assert(not wikidata_values or type(wikidata_values) == 'table', "Something went...

Click to read more »
Module:Sandbox/Jeblad/LuaDoc
Kamis, 2024-12-19 03:26:31

the fragment local Frag = {} Frag.__index = Frag setmetatable(Frag, { __call = function (cls, ...) local self = setmetatable({}, cls) self:_init(...

Click to read more »
Module:Sandbox/Erutuon
Senin, 2019-09-16 16:39:40

args[1] or "User:Erutuon/Unicode/DerivedCoreProperties.txt" local text = assert(mw.title.new(page):getContent()) local defaultIgnorable = text :match("Derived...

Click to read more »
Module:Convert
Kamis, 2026-01-15 09:19:56

data_module, text_module local sandbox = config.sandbox and ('/' .. config.sandbox) or '' data_module = "Module:Convert/data" .. sandbox text_module = "Module:Convert/text"...

Click to read more »
Module:Track listing/sandbox
Minggu, 2025-05-11 20:50:26

pairs(Track.fields) do self[field] = data[field] end self.number = assert(tonumber(self.number)) self:validateLength(self.length) return self end...

Click to read more »
Module:CineMol/geometry
Kamis, 2025-10-30 06:06:18

Do not compute the string.format unless the assert would fail. if arg._TYPE ~= argType then assert( arg._TYPE == argType, string.format(...

Click to read more »
Module:Sandbox/SD0001/Chess3
Kamis, 2025-02-20 14:45:54

from [[Module:Sandbox/Bawolff/Chessboard]] ---------------------------------------------------- local Calculator = require('Module:Sandbox/SD0001/Calculator')...

Click to read more »
Module:IPblock/sandbox
Rabu, 2017-11-15 14:01:56

allocation and range.ifirst < range.ilast then local imin = range.imin assert(imin and range.ifirst <= imin and imin < range.ilast) local r1 = make_range(iplist...

Click to read more »
Module:Mapframe
Senin, 2026-06-01 22:40:49

contains {{coord}} "Coord", "Coord/sandbox", "NRHP row", "NRHP row/sandbox", "WikidataCoord", "WikidataCoord/sandbox", "Wikidatacoord", "Wikidata coord"...

Click to read more »
Module:Params/sandbox/frameSpoof
Minggu, 2025-09-14 08:06:33

"checkArgs" used by "newChild", "callParserfunction", etc. does this elseif 'number' == vt then v = tostring(v) else assert('string' == vt, 'invalid...

Click to read more »
Module:Convert/makeunits
Selasa, 2024-10-22 14:42:28

quit('m_ftl_read', page_title) end local function prepare_data(cfg, is_sandbox) -- Read the page of conversion data, and process the wikitext -- in...

Click to read more »
Module:ImportProtein/sandbox
Kamis, 2023-04-13 03:13:54

the CDS in it starts and ends local file=args.file or pargs.file assert(file, "use 'file=some cut-and-pasted NCBI protein sequence' to input a protein...

Click to read more »
Module:Page/doc
Senin, 2024-09-02 05:15:19

blank to call mw.title.getCurrentTitle() and thus default to the page presently being viewed. makeTitle = Set this to any nonblank value to call mw.title...

Click to read more »
Module:Sandbox/Nemd57
Rabu, 2014-09-03 06:02:23

role in the vital French victory at Orleans, worked to defame her self-asserted divine calling and executed her at age nineteen in the marketplace of Rouen...

Click to read more »
Module:Sandbox/Liinisx
Jumat, 2023-01-13 22:32:10

trim(frame.args[1]) if f == "main" then throwError("main-called-twice") end assert(p["_"..f], errorText('no-such-function', f)) -- copy arguments...

Click to read more »
Module:Mahjong
Rabu, 2025-12-17 06:42:07

IMAGE_US = 8 -- Screen reader descriptions to show only when the arguments call for one, large tile image. local singleTileAlts = { MJw1 = 'A mahjong tile...

Click to read more »
Module:Sandbox/Was a bee/wd20170930
Sabtu, 2017-10-07 16:37:56

args[1]) if f == "main" then error(i18n["errors"]["main-called-twice"]) end assert(p["_"..f], applyStringParams(i18n['errors']['no-such-function']...

Click to read more »
Module:Sandbox/Thayts/Wd
Senin, 2022-07-18 02:01:58

trim(frame.args[1]) if f == "main" then throwError("main-called-twice") end assert(p[f], errorText('no-such-function', f)) -- copy arguments from...

Click to read more »
Module:Build bracket/Paths/sandbox
Selasa, 2025-08-26 10:28:26

stdlib alias local mmin, mmax = math.min, math.max -- upvalues bound per call (set in bind) local state, config, Helpers, StateChecks local split, notempty...

Click to read more »
Module:Sandbox/PeaceDeadC/Wd
Jumat, 2022-04-01 19:27:32

args[1]) if f == "main" then error(i18n["errors"]["main-called-twice"]) end assert(p["_"..f], applyStringParams(i18n['errors']['no-such-function']...

Click to read more »
Module:Sandbox/Jackmcbarn/ustring.lua
Jumat, 2014-07-11 22:29:03

pattern return sp elseif c == 0x24 and pattern.len == pp then -- '$': assert end of string return ( sp == cps.len + 1 ) and sp or nil else --...

Click to read more »