Module:ig-conj/testcases
Appearance
- The following documentation is located at Module:ig-conj/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
-kpọ́ | ị́kpọ̄ | ị́kpọ̄ | |
-sá | ị́sā | ị́sā | |
-dà | ị́dà | ị́dà | |
-kpé | íkpē | íkpē | |
-bè | íbè | íbè | |
-chètá | íchètà | íchètà | |
-kwádó | ị́kwādó | ị́kwādó | |
-hàpụ̀ | ị́hāpụ̀ | ị́hāpụ̀ | |
-gbásà | ị́gbāsà | ị́gbāsà |
Text | Expected | Actual | |
---|---|---|---|
-kpọ́ | àkpọ́ | àkpọ́ | |
-sá | àsá | àsá | |
-dà | ádà | ádà | |
-kpé | èkpé | èkpé | |
-bè | ébè | ébè | |
-chètá | échètá | échètá | |
-kwádó | àkwádó | àkwádó | |
-hàpụ̀ | áhàpụ̀ | áhàpụ̀ | |
-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