Module:User:iwsfutcmd/gez-verbal/testcases
- The following documentation is located at Module:User:iwsfutcmd/gez-verbal/testcases/documentation. [edit] Categories were auto-generated by Module:documentation. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • user page • user talk page • userspace
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
ቅትል, stem=Ga, form=pf, person=3ms | ቀተለ | ቀተለ | |
ንግር, stem=Ga, form=pf, person=1s | ነገርኩ | ነገርኩ | |
ግብር, stem=Gb, form=pf, person=3fp | ገብራ | ገብራ | |
ንግር, stem=Ga, form=impf, person=2fp | ትነግራ | ትነግራ | |
ነገረ, stem=Ga, form=juss, person=1p | ንንግር | ንንግር | |
ገበረ, stem=Gb, form=juss, person=3mp | ይግበሩ | ይግበሩ | |
ነገረ, stem=Ga, form=imp, person=2mp | ንግሩ | ንግሩ | |
ግብር, stem=Gb, form=imp, person=2fs | ግበሪ | ግበሪ | |
ወደቀ, stem=Ga, form=pf, person=1s | ወደቁ | ወደቁ | |
ከደነ, stem=Ga, form=pf, person=1p | ከደነ | ከደነ | |
ኀደገ, stem=Ga, form=pf, person=1s | ኀደጉ | ኀደጉ | |
ነበበ, stem=Ga, form=pf, person=3ms | ነበበ | ነበበ |
local tests = require('Module:UnitTests')
local gez_ver = require('Module:User:iwsfutcmd/gez-verbal')
function tests:check_conj(root, stem, form, person, expected)
self:equals(root .. ", stem=" .. stem .. ", form=" .. form .. ", person=" .. person,
gez_ver.conj(root, stem, form, person), expected)
end
function tests:test_conj()
local examples = {{"ቅትል", "Ga", "pf", "3ms", "ቀተለ"}, {"ንግር", "Ga", "pf", "1s", "ነገርኩ"},
{"ግብር", "Gb", "pf", "3fp", "ገብራ"}, {"ንግር", "Ga", "impf", "2fp", "ትነግራ"},
{"ነገረ", "Ga", "juss", "1p", "ንንግር"},
{"ገበረ", "Gb", "juss", "3mp", "ይግበሩ"},
{"ነገረ", "Ga", "imp", "2mp", "ንግሩ"}, {"ግብር", "Gb", "imp", "2fs", "ግበሪ"},
{"ወደቀ", "Ga", "pf", "1s", "ወደቁ"}, {"ከደነ", "Ga", "pf", "1p", "ከደነ"},
{"ኀደገ", "Ga", "pf", "1s", "ኀደጉ"}, {"ነበበ", "Ga", "pf", "3ms", "ነበበ"}}
self:iterate(examples, "check_conj")
end
return tests