Module:amf-nominal/testcases

From Wiktionary, the free dictionary
Jump to navigation Jump to search

All tests passed. (refresh)

TextExpectedActual
test_make_masculine:
Passedatáɓaataɓâataɓâ
Passedmazamazâmazâ
Passedbankárabankarâbankarâ
Passeddéeradɛɛrâdɛɛrâ
Passeddongáradɔngarâdɔngarâ
Passedooníɔɔnɛ̂ɔɔnɛ̂
Passedc’íiloc’iilɔ̂c’iilɔ̂
Passedqúɲaquɲâquɲâ
Passedmirjámirjâmirjâ
Passedbíiribiirɛ̂biirɛ̂
Passedɲoqóleɲɔqɔlɛ̂ɲɔqɔlɛ̂
Passedgoitígoitɛ̂goitɛ̂
Passedshekínishekinɛ̂shekinɛ̂
Passedzóbozɔbɔ̂zɔbɔ̂
Passedmetémɛtɛ̂mɛtɛ̂

local m_nom = require("Module:amf-nominal")
local m_util = require("Module:amf-utilities")
local syl = m_util.syllabify
local comb = m_util.combine

local p = require('Module:UnitTests')

function p:check_make_masculine(a,b)
	self:equals(
		a,
		comb(m_nom.make_masculine(syl(a))),
		b
	)
end

function p:test_make_masculine()
	self:iterate({
		{"atáɓa", "ataɓâ"},
		{"maza", "mazâ"},
		{"bankára", "bankarâ"},
		{"déera", "dɛɛrâ"},
		{"dongára", "dɔngarâ"},
		{"ooní", "ɔɔnɛ̂"},
		{"c’íilo", "c’iilɔ̂"},
		{"qúɲa", "quɲâ"},
		{"mirjá", "mirjâ"},
		{"bíiri", "biirɛ̂"},
		{"ɲoqóle", "ɲɔqɔlɛ̂"},
		{"goití", "goitɛ̂"},
		{"shekíni", "shekinɛ̂"},
		{"zóbo", "zɔbɔ̂"},
		{"meté", "mɛtɛ̂"},
	}, "check_make_masculine")
end

return p