<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocbunto%2Ftestcases</id>
	<title>Module:Docbunto/testcases - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://elite.mistflux.co.uk/w/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocbunto%2Ftestcases"/>
	<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:Docbunto/testcases&amp;action=history"/>
	<updated>2026-11-01T13:19:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://elite.mistflux.co.uk/w/index.php?title=Module:Docbunto/testcases&amp;diff=112528&amp;oldid=prev</id>
		<title>Wikipedia&gt;Awesome Aasim at 15:06, 8 June 2026</title>
		<link rel="alternate" type="text/html" href="https://elite.mistflux.co.uk/w/index.php?title=Module:Docbunto/testcases&amp;diff=112528&amp;oldid=prev"/>
		<updated>2026-06-08T15:06:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;--- Test suite for [[Module:Docbunto]]&lt;br /&gt;
&lt;br /&gt;
local docbunto = require(&amp;quot;Module:Docbunto&amp;quot;)&lt;br /&gt;
local suite = require(&amp;#039;Module:ScribuntoUnit&amp;#039;).new()&lt;br /&gt;
local str = require(&amp;quot;Module:String&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
local function testWikitext( wikitext, that )&lt;br /&gt;
	local sourceSplit = mw.text.split( wikitext, &amp;#039;\n&amp;#039; )&lt;br /&gt;
	for k,v in ipairs(sourceSplit) do&lt;br /&gt;
		if k == 1 then&lt;br /&gt;
			sourceSplit[k] = &amp;#039;--- &amp;#039; .. v&lt;br /&gt;
		else&lt;br /&gt;
			sourceSplit[k] = &amp;#039;-- &amp;#039; .. v&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	local source = table.concat( sourceSplit, &amp;#039;\n&amp;#039; )&lt;br /&gt;
	local expected = mw.getCurrentFrame():preprocess( wikitext )&lt;br /&gt;
	local actual = docbunto.build( &amp;quot;Docbunto&amp;quot;, { content=source } )&lt;br /&gt;
	mw.log( source )&lt;br /&gt;
	mw.log( expected )&lt;br /&gt;
	mw.log( actual )&lt;br /&gt;
	that:assertTrue( str._match( actual, expected, 1, 1, true, &amp;#039;&amp;#039; ) ~= &amp;#039;&amp;#039; )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function suite:testParagraph()&lt;br /&gt;
	testWikitext( &amp;#039;This is an example\nparagraph to test&amp;#039;, self )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function suite:testMarkdown()&lt;br /&gt;
	local source = &amp;#039;--- A \n -- ## Usage ## \n B&amp;#039;&lt;br /&gt;
	local expected = mw.getCurrentFrame():preprocess( &amp;#039;A \n== Usage == \n B&amp;#039; )&lt;br /&gt;
	local actual = docbunto.build( &amp;quot;Docbunto&amp;quot;, { content=source } )&lt;br /&gt;
	self:assertTrue( str._match( actual, expected, 1, 1, true, &amp;#039;&amp;#039; ) ~= &amp;#039;&amp;#039; )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function suite:testWikitable()&lt;br /&gt;
	testWikitext( &amp;#039;{| class=&amp;quot;wikitable&amp;quot;\n ! a \n ! b \n |- \n | c || d \n |}&amp;#039;, self )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function suite:testTemplate()&lt;br /&gt;
	testWikitext( &amp;#039;{{tl|foo}}&amp;#039;, self )&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return suite&lt;/div&gt;</summary>
		<author><name>Wikipedia&gt;Awesome Aasim</name></author>
	</entry>
</feed>