Module:ki-headword/testcases

local tests = require('Module:UnitTests') local m_ki_head = require('Module:ki-headword') local m_links = require('Module:links')

function tests:check_noun(singular, class, plural) self:equals(		singular .. " (" .. class .. ")",		m_ki_head.generate_plural(singular, class), plural	) end

function tests:test_nouns self:check_noun("mwabc", "1", "aabc") self:check_noun("rũambo", "11", "nyambo") self:check_noun("rũteru", "11", "nderu") self:check_noun("rũĩmbo", "11", "nyĩmbo") self:check_noun("rũenji", "11", "nyenji") self:check_noun("rũrĩmĩ", "11", "nĩmĩ") end

return tests