Documentația acestui modul poate fi creată la Modul:InLang/testcases/doc

local p = require('Modul:UnitTests')

function p:testLanguageWithoutTransliterationWithISO1Code()
	self:preprocess_equals_many('{{#invoke:InLang|fromFrame|', '}}', { {'Q1860|water', '[[:Limba engleză|engleză]] <span lang="en">\'\'water\'\'</span>'}, {'engleză|water', '[[Limba engleză|engleză]] \'\'water\'\''}}, {nowiki = true})
end

function p:testLanguageWithoutTransliterationWithoutISO1Or2Code()
	self:preprocess_equals_many('{{#invoke:InLang|fromFrame|', '}}', { {'Q7979|colour', '[[:Engleza britanică|engleză britanică]] <span lang="en-gb">\'\'colour\'\'</span>'}, {'engleză britanică|colour', '[[Limba engleză britanică|engleză britanică]] \'\'colour\'\''}}, {nowiki = true})
end

function p:testLanguageWithoutTransliterationWithoutISO1Code()
	self:preprocess_equals_many('{{#invoke:InLang|fromFrame|', '}}', { {'Q29316|armãneashce', '[[:Limba aromână|aromână]] <span lang="rup">\'\'armãneashce\'\'</span>'}, {'aromână|armãneashce', '[[Limba aromână|aromână]] \'\'armãneashce\'\''}}, {nowiki = true})
end

function p:testLanguageWithTransliteration()
	self:preprocess_equals_many('{{#invoke:InLang|fromFrame|', '}}', { {'Q7918|Български|Bălgarski', '[[:Limba bulgară|bulgară]] <span lang="bg">\'\'Български\'\'</span>, transliterat <span lang="bg">\'\'Bălgarski\'\'</span>'}, {'bulgară|Български|Bălgarski', '[[Limba bulgară|bulgară]] \'\'Български\'\', transliterat \'\'Bălgarski\'\''}}, {nowiki = true})
end

function p:testLanguageWithLatinVariant()
	self:preprocess_equals_many('{{#invoke:InLang|fromFrame|', '}}', { {'Q9299|Српски|Srpski|cu alfabet latin', '[[:Limba sârbă|sârbă]] <span lang="sr">\'\'Српски\'\'</span>, cu alfabet latin <span lang="sr">\'\'Srpski\'\'</span>'}, {'sârbă|Српски|Srpski|cu alfabet latin', '[[Limba sârbă|sârbă]] \'\'Српски\'\', cu alfabet latin \'\'Srpski\'\''}}, {nowiki = true})
end

return p