Jump to content

Module:ig-conj/testcases

From Wiktionary, the free dictionary

All tests passed. (refresh)

TextExpectedActual
test_infinitive:
Passed-kpọ́ị́kpọ̄ị́kpọ̄
Passed-sáị́sāị́sā
Passed-dàị́dàị́dà
Passed-kpéíkpēíkpē
Passed-bèíbèíbè
Passed-chètáíchètàíchètà
Passed-kwádóị́kwādóị́kwādó
Passed-hàpụ̀ị́hāpụ̀ị́hāpụ̀
Passed-gbásàị́gbāsàị́gbāsà
TextExpectedActual
test_participle:
Passed-kpọ́àkpọ́àkpọ́
Passed-sáàsáàsá
Passed-dàádàádà
Passed-kpéèkpéèkpé
Passed-bèébèébè
Passed-chètáéchètáéchètá
Passed-kwádóàkwádóàkwádó
Passed-hàpụ̀áhàpụ̀áhàpụ̀
Passed-gbásààgbásààgbásà

local tests = require("Module:UnitTests")
local ig_conj = require("Module:ig-conj")

function tests:test_infinitive()
	self:equals("-kpọ́", ig_conj.infinitive("kpọ́"), "ị́kpọ̄")
	self:equals("-sá", ig_conj.infinitive("sá"), "ị́sā")
	self:equals("-dà", ig_conj.infinitive("dà"), "ị́dà")
	self:equals("-kpé", ig_conj.infinitive("kpé"), "íkpē")
	self:equals("-bè", ig_conj.infinitive("bè"), "íbè")
	self:equals("-chètá", ig_conj.infinitive("chètá"), "íchètà")
	self:equals("-kwádó", ig_conj.infinitive("kwádó"), "ị́kwādó")
	self:equals("-hàpụ̀", ig_conj.infinitive("hàpụ̀"), "ị́hāpụ̀")
	self:equals("-gbásà", ig_conj.infinitive("gbásà"), "ị́gbāsà")
end

function tests:test_participle()
	self:equals("-kpọ́", ig_conj.participle("kpọ́"), "àkpọ́")
	self:equals("-sá", ig_conj.participle("sá"), "àsá")
	self:equals("-dà", ig_conj.participle("dà"), "ádà")
	self:equals("-kpé", ig_conj.participle("kpé"), "èkpé")
	self:equals("-bè", ig_conj.participle("bè"), "ébè")
	self:equals("-chètá", ig_conj.participle("chètá"), "échètá")
	self:equals("-kwádó", ig_conj.participle("kwádó"), "àkwádó")
	self:equals("-hàpụ̀", ig_conj.participle("hàpụ̀"), "áhàpụ̀")
	self:equals("-gbásà", ig_conj.participle("gbásà"), "àgbásà")
end

return tests