Module:lzz-dec-noun/testcases

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


local tester = require('Module:UnitTests') -- ]
local mod = require('Module:lzz-dec-noun') -- ]

local unpack = unpack or table.unpack -- Lua 5.2 compatibility

function tester:tests_main()
	local testcases = {
		 = {tests = {{"abs2", "კოლეფე"}}},
		
		 = {args = { = ""}, 
					  tests = {{"gen1", "ტაბაღიშ(ი))"}, {"dat2", "ტაბაღეფეში"}}},
		
		 = {args = { = ""}, 
					tests = {{"loc1", "საღანის"}, {"ins1", "საღანითენ"}}},
		
		 = {args = { = "given name"}, 
					tests = {{"gen1", "ალიშ"}}},
		
		 = {args = { = "მამედი",  = "given name"}, 
					tests = {{"lat1", "მამედიშე"}, {"abl1", "მამედიშენ"}}},
					
		 = {args = { = "given name"}, 
					tests = {{"adv1", "დავითად"}, {"dat1", "დავითს"}}},
	}
	
	for inflTerm, testcase in pairs(testcases) do
		local tests = testcase.tests;
		local term = testcase.term or inflTerm;
		local args = testcase.args or {}
		args = term
		
		for _, test in pairs(tests) do
			local form, shouldbe = unpack(test)
			local testname = form .. ". of " .. term
			self:equals(testname, mod.test(args, form), shouldbe, {nowiki = true})
		end
	end
end

return tester