Minden teszt sikeres. (frissítés)

Szöveg Várt Tényleges
test_make_stem2:
Sikeres longitūdō longitūdinis longitūdinis
Sikeres analysis analysis analysis
Sikeres pānis pānis pānis
Sikeres amāns amantis amantis
Sikeres agēns agentis agentis
Sikeres mōns montis montis
Sikeres biceps bicipitis bicipitis
Sikeres penus penoris penoris
Sikeres index indicis indicis
Sikeres lemma lemmatis lemmatis
Sikeres būbīle būbīlis būbīlis
Sikeres nōmen nōminis nōminis
Sikeres niger nigris nigris
Sikeres actor actōris actōris
Sikeres actiō actiōnis actiōnis
Sikeres quālitās quālitātis quālitātis
Sikeres adiūtrīx adiūtrīcis adiūtrīcis

local p = require('Module:UnitTests')
local u = require("Module:la-utilities")
local lang = require("Module:languages").getByCode("la")

function p:make_stem2_template(stem1, stem2)
	self:equals('<span class="Latn" lang="la">[[' .. lang:makeEntryName(stem1) .. '#Latin|' .. stem1 .. ']]</span>', u.make_stem2(stem1) .. "is", stem2 .. "is")
end

function p:test_make_stem2()
	local examples = {
		{ "longitūdō","longitūdin" },
		{ "analysis","analys" },
		{ "pānis","pān" },
		{ "amāns","amant" },
		{ "agēns","agent" },
		{ "mōns","mont" },
		{ "biceps","bicipit" },
		{ "penus","penor" },
		{ "index","indic" },
	
		{ "lemma","lemmat" },
		{ "būbīle","būbīl" },
		{ "nōmen","nōmin" },
		{ "niger","nigr" },
		{ "actor","actōr" },
		{ "actiō","actiōn" },
		{ "quālitās","quālitāt" },
		{ "adiūtrīx","adiūtrīc" },
	}
	self:iterate(examples, "make_stem2_template")
end

return p