<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-CA">
	<id>https://twwrando.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ASeparated_entries%2Ftestcases</id>
	<title>Module:Separated entries/testcases - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://twwrando.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ASeparated_entries%2Ftestcases"/>
	<link rel="alternate" type="text/html" href="https://twwrando.com/index.php?title=Module:Separated_entries/testcases&amp;action=history"/>
	<updated>2026-10-13T14:13:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://twwrando.com/index.php?title=Module:Separated_entries/testcases&amp;diff=139&amp;oldid=prev</id>
		<title>Colfra: Created page with &quot;local p = require('Module:ScribuntoUnit'):new() local m = require('Module:Separated entries')  local function callWithArgs(args, separator, conjunction, start) 	local frame =...&quot;</title>
		<link rel="alternate" type="text/html" href="https://twwrando.com/index.php?title=Module:Separated_entries/testcases&amp;diff=139&amp;oldid=prev"/>
		<updated>2021-08-28T20:00:03Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;local p = require(&amp;#039;Module:ScribuntoUnit&amp;#039;):new() local m = require(&amp;#039;Module:Separated entries&amp;#039;)  local function callWithArgs(args, separator, conjunction, start) 	local frame =...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = require('Module:ScribuntoUnit'):new()&lt;br /&gt;
local m = require('Module:Separated entries')&lt;br /&gt;
&lt;br /&gt;
local function callWithArgs(args, separator, conjunction, start)&lt;br /&gt;
	local frame = (mw.getCurrentFrame()&lt;br /&gt;
		:newChild{ args = args }&lt;br /&gt;
		:newChild{ args = { separator = separator, conjunction = conjunction, start = start } })&lt;br /&gt;
	return m.main(frame)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function callWithArgsBr(args, start)&lt;br /&gt;
	local frame = (mw.getCurrentFrame()&lt;br /&gt;
		:newChild{ args = args }&lt;br /&gt;
		:newChild{ args = { start = start } })&lt;br /&gt;
	return m.br(frame)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function callWithArgsComma(args, start)&lt;br /&gt;
	local frame = (mw.getCurrentFrame()&lt;br /&gt;
		:newChild{ args = args }&lt;br /&gt;
		:newChild{ args = { start = start } })&lt;br /&gt;
	return m.comma(frame)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:testMain()&lt;br /&gt;
	self:assertEquals('abc', callWithArgs({ 'a', 'b', 'c' }))&lt;br /&gt;
	self:assertEquals('a, b, c', callWithArgs({ 'a', 'b', 'c' }, ',&amp;amp;#32;'))&lt;br /&gt;
	self:assertEquals('a, b and c', callWithArgs({ 'a', 'b', 'c' }, ',&amp;amp;#32;', '&amp;amp;#32;and&amp;amp;#32;'))&lt;br /&gt;
	self:assertEquals('b and c', callWithArgs({ 'a', 'b', 'c' }, ',&amp;amp;#32;', '&amp;amp;#32;and&amp;amp;#32;', '2'))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:testBr()&lt;br /&gt;
	self:assertEquals('a&amp;lt;br /&amp;gt;b&amp;lt;br /&amp;gt;c', callWithArgsBr({ 'a', 'b', 'c' }))&lt;br /&gt;
	self:assertEquals('b&amp;lt;br /&amp;gt;c', callWithArgsBr({ 'a', 'b', 'c' }, '2'))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:testComma()&lt;br /&gt;
	self:assertEquals('a, b, c', callWithArgsComma({ 'a', 'b', 'c' }))&lt;br /&gt;
	self:assertEquals('b, c', callWithArgsComma({ 'a', 'b', 'c' }, '2'))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Colfra</name></author>
	</entry>
</feed>