<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AInterlinear%2Ftestcases</id>
	<title>Module:Interlinear/testcases - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AInterlinear%2Ftestcases"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Interlinear/testcases&amp;action=history"/>
	<updated>2026-05-24T13:35:50Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:Interlinear/testcases&amp;diff=137026&amp;oldid=prev</id>
		<title>imported&gt;GPHemsley: Add some tests for find_gloss()</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:Interlinear/testcases&amp;diff=137026&amp;oldid=prev"/>
		<updated>2019-07-23T13:21:49Z</updated>

		<summary type="html">&lt;p&gt;Add some tests for find_gloss()&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = require(&amp;#039;Module:UnitTests&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
function p:test_defaults()&lt;br /&gt;
    local base = &amp;#039;{{interlinear|lang=jig|Nginda-rni ngaja-mi jurliji-rdarra diyim ka-rdu|DEM(M)-FOC see-IRR bird-PL fly 3SG-go|\&amp;#039;Look at all the birds flying!\&amp;#039;}}&amp;#039;&lt;br /&gt;
    local explicit = &amp;#039;{{interlinear|lang=jig|italics1=yes|italics2=no|glossing1=no|glossing2=yes|Nginda-rni ngaja-mi jurliji-rdarra diyim ka-rdu|DEM(M)-FOC see-IRR bird-PL fly 3SG-go|\&amp;#039;Look at all the birds flying!\&amp;#039;}}&amp;#039;&lt;br /&gt;
    &lt;br /&gt;
    self:preprocess_equals_preprocess(base, explicit, {nowiki=1})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test_italics()&lt;br /&gt;
	local base = &amp;#039;{{interlinear|{Line 1}|{Line 2}|Line 3}}&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	self:preprocess_equals_preprocess(base, &amp;#039;{{interlinear|italics1=yes|{Line 1}|{Line 2}|Line 3}}&amp;#039;, {nowiki=1})	&lt;br /&gt;
	self:preprocess_equals_preprocess(base, &amp;#039;{{interlinear|italics2=no|{Line 1}|{Line 2}|Line 3}}&amp;#039;, {nowiki=1})	&lt;br /&gt;
	self:preprocess_equals_preprocess(base, &amp;#039;{{interlinear|italics1=yes|italics2=no|{Line 1}|{Line 2}|Line 3}}&amp;#039;, {nowiki=1})	&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
function p:test_glossing()&lt;br /&gt;
	local base = &amp;#039;{{interlinear|{Line 1}|{Line 2}|Line 3}}&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	self:preprocess_equals_preprocess(base, &amp;#039;{{interlinear|glossing1=no|{Line 1}|{Line 2}|Line 3}}&amp;#039;, {nowiki=1})	&lt;br /&gt;
	self:preprocess_equals_preprocess(base, &amp;#039;{{interlinear|glossing2=yes|{Line 1}|{Line 2}|Line 3}}&amp;#039;, {nowiki=1})	&lt;br /&gt;
	self:preprocess_equals_preprocess(base, &amp;#039;{{interlinear|glossing1=no|glossing2=yes|{Line 1}|{Line 2}|Line 3}}&amp;#039;, {nowiki=1})	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p:test_find_gloss()&lt;br /&gt;
	self:preprocess_equals(&amp;#039;{{Interlinear|glossing1=yes|test+test}}&amp;#039;, &amp;#039;&amp;lt;span style=&amp;quot;margin: 0px;&amp;quot;&amp;gt;test+test&amp;lt;/span&amp;gt;&amp;#039;, {nowiki=1})&lt;br /&gt;
	self:preprocess_equals(&amp;#039;{{Interlinear|glossing1=yes|test+PRES}}&amp;#039;, &amp;#039;&amp;lt;span style=&amp;quot;margin: 0px;&amp;quot;&amp;gt;test+&amp;lt;abbr class=&amp;quot;gloss-abbr&amp;quot; title=&amp;quot;present tense&amp;quot; style=&amp;quot;font-variant: small-caps; font-variant-numeric: oldstyle-nums; text-transform: lowercase; &amp;quot;&amp;gt;PRES&amp;lt;/abbr&amp;gt;&amp;lt;/span&amp;gt;&amp;#039;, {nowiki=1})&lt;br /&gt;
	self:preprocess_equals(&amp;#039;{{Interlinear|glossing1=yes|test.test}}&amp;#039;, &amp;#039;&amp;lt;span style=&amp;quot;margin: 0px;&amp;quot;&amp;gt;test.test&amp;lt;/span&amp;gt;&amp;#039;, {nowiki=1})&lt;br /&gt;
	self:preprocess_equals(&amp;#039;{{Interlinear|glossing1=yes|test.PRES}}&amp;#039;, &amp;#039;&amp;lt;span style=&amp;quot;margin: 0px;&amp;quot;&amp;gt;test.&amp;lt;abbr class=&amp;quot;gloss-abbr&amp;quot; title=&amp;quot;present tense&amp;quot; style=&amp;quot;font-variant: small-caps; font-variant-numeric: oldstyle-nums; text-transform: lowercase; &amp;quot;&amp;gt;PRES&amp;lt;/abbr&amp;gt;&amp;lt;/span&amp;gt;&amp;#039;, {nowiki=1})&lt;br /&gt;
	self:preprocess_equals(&amp;#039;{{Interlinear|glossing1=yes|test.PRES&amp;lt;ref name=&amp;quot;test&amp;quot;&amp;gt;test&amp;lt;/ref&amp;gt;}}&amp;#039;, &amp;#039;&amp;lt;span style=&amp;quot;margin: 0px;&amp;quot;&amp;gt;test.&amp;lt;abbr class=&amp;quot;gloss-abbr&amp;quot; title=&amp;quot;present tense&amp;quot; style=&amp;quot;font-variant: small-caps; font-variant-numeric: oldstyle-nums; text-transform: lowercase; &amp;quot;&amp;gt;PRES&amp;lt;/abbr&amp;gt;\127\&amp;#039;&amp;quot;`UNIQ--ref-00000000-QINU`&amp;quot;\&amp;#039;\127&amp;lt;/span&amp;gt;&amp;#039;, {nowiki=1})&lt;br /&gt;
end&lt;br /&gt;
 &lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;GPHemsley</name></author>
	</entry>
</feed>