Module:User:iwsfutcmd/gez-verbal/testcases

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