<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://www.vigyanwiki.in/index.php?action=history&amp;feed=atom&amp;title=Module%3ACallAssert</id>
	<title>Module:CallAssert - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.vigyanwiki.in/index.php?action=history&amp;feed=atom&amp;title=Module%3ACallAssert"/>
	<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:CallAssert&amp;action=history"/>
	<updated>2026-04-24T17:27:59Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:CallAssert&amp;diff=183970&amp;oldid=prev</id>
		<title>Indicwiki: 1 revision imported from :alpha:Module:CallAssert</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:CallAssert&amp;diff=183970&amp;oldid=prev"/>
		<updated>2023-06-11T06:00:38Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://alpha.indicwiki.in/index.php?title=Module:CallAssert&quot; class=&quot;extiw&quot; title=&quot;alpha:Module:CallAssert&quot;&gt;alpha:Module:CallAssert&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:30, 11 June 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Indicwiki</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:CallAssert&amp;diff=183969&amp;oldid=prev</id>
		<title>alpha&gt;Sarika: Created page with &quot;local function pack(...) 	return {...}, select('#', ...) end  local function mapArray(func, array, count) 	local result = {} 	for i = 1, count or #array do 		result[i] = func(...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:CallAssert&amp;diff=183969&amp;oldid=prev"/>
		<updated>2022-11-17T07:08:10Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local function pack(...) 	return {...}, select(&amp;#039;#&amp;#039;, ...) end  local function mapArray(func, array, count) 	local result = {} 	for i = 1, count or #array do 		result[i] = func(...&amp;quot;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:38, 17 November 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>alpha&gt;Sarika</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:CallAssert&amp;diff=18678&amp;oldid=prev</id>
		<title>Admin: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:CallAssert&amp;diff=18678&amp;oldid=prev"/>
		<updated>2022-10-18T04:06:55Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 09:36, 18 October 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://www.vigyanwiki.in/index.php?title=Module:CallAssert&amp;diff=18677&amp;oldid=prev</id>
		<title>wikipedia&gt;Xaosflux: Changed protection level for &quot;Module:CallAssert&quot;: used in interface MediaWiki:Protectedinterface ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://www.vigyanwiki.in/index.php?title=Module:CallAssert&amp;diff=18677&amp;oldid=prev"/>
		<updated>2019-03-13T12:54:41Z</updated>

		<summary type="html">&lt;p&gt;Changed protection level for &amp;quot;&lt;a href=&quot;/wiki/Module:CallAssert&quot; title=&quot;Module:CallAssert&quot;&gt;Module:CallAssert&lt;/a&gt;&amp;quot;: used in interface &lt;a href=&quot;/wiki/MediaWiki:Protectedinterface&quot; title=&quot;MediaWiki:Protectedinterface&quot;&gt;MediaWiki:Protectedinterface&lt;/a&gt; ([Edit=Require administrator access] (indefinite) [Move=Require administrator access] (indefinite))&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local function pack(...)&lt;br /&gt;
	return {...}, select('#', ...)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function mapArray(func, array, count)&lt;br /&gt;
	local result = {}&lt;br /&gt;
	for i = 1, count or #array do&lt;br /&gt;
		result[i] = func(array[i])&lt;br /&gt;
	end&lt;br /&gt;
	return result&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function quote(value)&lt;br /&gt;
	if type(value) == 'string' then&lt;br /&gt;
		return (string.gsub(string.format('%q', value), '\\\n', '\\n'))  -- Outer parentheses remove second value returned by gsub&lt;br /&gt;
	end&lt;br /&gt;
	local str = tostring(value)&lt;br /&gt;
	if type(value) == 'table' and str ~= 'table' then&lt;br /&gt;
		return '{' .. str .. '}'&lt;br /&gt;
	end&lt;br /&gt;
	return str&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function callAssert(func, funcName, ...)&lt;br /&gt;
	local result, resultCount = pack(func(...))&lt;br /&gt;
	if not result[1] then&lt;br /&gt;
		local args, argsCount = pack(...)&lt;br /&gt;
		args = mapArray(quote, args, argsCount)&lt;br /&gt;
		local message = mw.ustring.format(&lt;br /&gt;
			'%s(%s) failed',&lt;br /&gt;
			funcName,&lt;br /&gt;
			table.concat(args, ', ')&lt;br /&gt;
		)&lt;br /&gt;
		error(message, 2)&lt;br /&gt;
	end&lt;br /&gt;
	return unpack(result, 1, resultCount)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return callAssert&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Xaosflux</name></author>
	</entry>
</feed>