Module:ki-headword/testcases

Hello, you have come here looking for the meaning of the word Module:ki-headword/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:ki-headword/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:ki-headword/testcases in singular and plural. Everything you need to know about the word Module:ki-headword/testcases you have here. The definition of the word Module:ki-headword/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:ki-headword/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

All tests passed. (refresh)

TextExpectedActual
test_nouns:
Passedmwabc (1)aabcaabc
Passedrũambo (11)nyambonyambo
Passedrũteru (11)nderunderu
Passedrũĩmbo (11)nyĩmbonyĩmbo
Passedrũenji (11)nyenjinyenji
Passedrũrĩmĩ (11)nĩmĩnĩmĩ

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