Module:amf-nominal/testcases

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